MCPcopy
hub / github.com/grpc/grpc-go / convertEvent

Function convertEvent

authz/audit/stdout/stdout_logger.go:101–110  ·  view source on GitHub ↗
(auditEvent *audit.Event)

Source from the content-addressed store, hash-verified

99}
100
101func convertEvent(auditEvent *audit.Event) *event {
102 return &event{
103 FullMethodName: auditEvent.FullMethodName,
104 Principal: auditEvent.Principal,
105 PolicyName: auditEvent.PolicyName,
106 MatchedRule: auditEvent.MatchedRule,
107 Authorized: auditEvent.Authorized,
108 Timestamp: time.Now().Format(time.RFC3339Nano),
109 }
110}

Callers 1

LogMethod · 0.85

Calls 1

NowMethod · 0.80

Tested by

no test coverage detected