Documentation ¶
Index ¶
- func AddAuth(authFunc grpc_auth.AuthFunc) ([]grpc.UnaryServerInterceptor, []grpc.StreamServerInterceptor)
- func AddLogging(logger *zap.Logger) ([]grpc.UnaryServerInterceptor, []grpc.StreamServerInterceptor)
- func AddPayloadLogging(logger *zap.Logger) ([]grpc.UnaryServerInterceptor, []grpc.StreamServerInterceptor)
- func AddRecovery() ([]grpc.UnaryServerInterceptor, []grpc.StreamServerInterceptor)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAuth ¶ added in v0.0.3
func AddAuth( authFunc grpc_auth.AuthFunc, ) ([]grpc.UnaryServerInterceptor, []grpc.StreamServerInterceptor)
AddAuth returns grpc.Server config option that turn on logging.
func AddLogging ¶
func AddLogging( logger *zap.Logger, ) ([]grpc.UnaryServerInterceptor, []grpc.StreamServerInterceptor)
AddLogging returns grpc.Server config option that turn on logging.
func AddPayloadLogging ¶
func AddPayloadLogging( logger *zap.Logger, ) ([]grpc.UnaryServerInterceptor, []grpc.StreamServerInterceptor)
func AddRecovery ¶
func AddRecovery() ([]grpc.UnaryServerInterceptor, []grpc.StreamServerInterceptor)
AddRecovery recovers from gRPC panics from handlers
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.