Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultCtxTagsOptions = []grpc_ctxtags.Option{ grpc_ctxtags.WithFieldExtractor(grpc_ctxtags.TagBasedRequestFieldExtractor("log_fields")), }
View Source
var DefaultRecoveryOptions = []grpc_recovery.Option{ grpc_recovery.WithRecoveryHandler(func(p interface{}) (err error) { return status.Errorf(codes.Unknown, "panic triggered: %v", p) }), }
View Source
var DefaultServerOptions = []grpc.ServerOption{ grpc.ChainStreamInterceptor( grpc_recovery.StreamServerInterceptor(DefaultRecoveryOptions...), grpc_ctxtags.StreamServerInterceptor(DefaultCtxTagsOptions...), grpc_prometheus.StreamServerInterceptor, otelgrpc.StreamServerInterceptor(), grpc_auth.StreamServerInterceptor(GrpcSignCheckFunc), ), grpc.ChainUnaryInterceptor( grpc_recovery.UnaryServerInterceptor(DefaultRecoveryOptions...), grpc_ctxtags.UnaryServerInterceptor(DefaultCtxTagsOptions...), grpc_prometheus.UnaryServerInterceptor, otelgrpc.UnaryServerInterceptor(), grpc_auth.UnaryServerInterceptor(GrpcSignCheckFunc), ), }
View Source
var SignKey = ""
Functions ¶
func GetInstance ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.