Documentation ¶
Index ¶
- func GrpcClientTokenInterceptor(tokenData string) grpc.UnaryClientInterceptor
- func GrpcServerLoggingInterceptor(logger nlog.NLog) grpc.UnaryServerInterceptor
- func GrpcServerMasterRoleInterceptor() grpc.UnaryServerInterceptor
- func GrpcServerTokenInterceptor(tokenData string) grpc.UnaryServerInterceptor
- func GrpcStreamServerLoggingInterceptor(Logger nlog.NLog) grpc.StreamServerInterceptor
- func GrpcStreamServerMasterRoleInterceptor() grpc.StreamServerInterceptor
- func GrpcStreamServerTokenInterceptor(tokenData string) grpc.StreamServerInterceptor
- func HTTPServerLoggingInterceptor(logger nlog.NLog) func(c *gin.Context)
- func HTTPSetMasterRoleInterceptor() func(c *gin.Context)
- func HTTPSourceAuthInterceptor() func(c *gin.Context)
- func HTTPTokenAuthInterceptor(tokenData string) func(c *gin.Context)
- func StreamRecoverInterceptor(errorCode pberrorcode.ErrorCode) grpc.StreamServerInterceptor
- func UnaryRecoverInterceptor(errorCode pberrorcode.ErrorCode) grpc.UnaryServerInterceptor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GrpcClientTokenInterceptor ¶
func GrpcClientTokenInterceptor(tokenData string) grpc.UnaryClientInterceptor
func GrpcServerLoggingInterceptor ¶
func GrpcServerLoggingInterceptor(logger nlog.NLog) grpc.UnaryServerInterceptor
GrpcServerLoggingInterceptor defines the unary interceptor used to log RPC requests made with a unary call.
func GrpcServerMasterRoleInterceptor ¶
func GrpcServerMasterRoleInterceptor() grpc.UnaryServerInterceptor
func GrpcServerTokenInterceptor ¶
func GrpcServerTokenInterceptor(tokenData string) grpc.UnaryServerInterceptor
func GrpcStreamServerLoggingInterceptor ¶
func GrpcStreamServerLoggingInterceptor(Logger nlog.NLog) grpc.StreamServerInterceptor
GrpcStreamServerLoggingInterceptor defines the stream interceptor used to log RPC requests made with a stream.
func GrpcStreamServerMasterRoleInterceptor ¶
func GrpcStreamServerMasterRoleInterceptor() grpc.StreamServerInterceptor
func GrpcStreamServerTokenInterceptor ¶
func GrpcStreamServerTokenInterceptor(tokenData string) grpc.StreamServerInterceptor
func StreamRecoverInterceptor ¶
func StreamRecoverInterceptor(errorCode pberrorcode.ErrorCode) grpc.StreamServerInterceptor
StreamRecoverInterceptor returns a new stream server interceptors that recovers from panics.
func UnaryRecoverInterceptor ¶
func UnaryRecoverInterceptor(errorCode pberrorcode.ErrorCode) grpc.UnaryServerInterceptor
UnaryRecoverInterceptor returns a new unary server interceptors that recovers from panics.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.