Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MiddlewareRPCSet = wire.NewSet(wire.Struct(new(MiddlewareRPC), "*"))
View Source
var MwsRPCSet = wire.NewSet( auth.AuthRPCSet, validator.ValidatorRPCSet, tracing.TracingRPCSet, )
Functions ¶
func ChainUnaryInterceptors ¶
func ChainUnaryInterceptors(interceptorMap map[string][]grpc.UnaryServerInterceptor) grpc.UnaryServerInterceptor
连接多个 UnaryInterceptor
Types ¶
type IMiddlewareRPC ¶
type MiddlewareRPC ¶
type MiddlewareRPC struct { AuthRPC *auth.AuthRPC ValidatorRPC *validator.ValidatorRPC TracingRPC *tracing.TracingRPC }
Click to show internal directories.
Click to hide internal directories.