Documentation ¶
Index ¶
Constants ¶
View Source
const (
// XRequestIDKey is a key for getting request id.
XRequestIDKey = "X-Request-ID"
)
Variables ¶
This section is empty.
Functions ¶
func AuthenticationInterceptor ¶
func AuthenticationInterceptor() grpc.UnaryServerInterceptor
AuthenticationInterceptor is a interceptor of authentication.
func PayloadUnaryClientInterceptor ¶
func PayloadUnaryClientInterceptor(entry *logrus.Entry, decider grpc_logging.ClientPayloadLoggingDecider, startTimeFunc func() time.Time, durationFunc func(startTime time.Time) time.Duration) grpc.UnaryClientInterceptor
PayloadUnaryClientInterceptor returns a new unary client interceptor that logs the paylods of requests and responses.
func RequestIDInterceptor ¶
func RequestIDInterceptor() grpc.UnaryServerInterceptor
RequestIDInterceptor is a interceptor of access control list.
Types ¶
Click to show internal directories.
Click to hide internal directories.