interceptor

package
v0.0.0-...-846bdf4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 19 Imported by: 2

Documentation

Index

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 HTTPServerLoggingInterceptor

func HTTPServerLoggingInterceptor(logger nlog.NLog) func(c *gin.Context)

func HTTPSetMasterRoleInterceptor

func HTTPSetMasterRoleInterceptor() func(c *gin.Context)

func HTTPSourceAuthInterceptor

func HTTPSourceAuthInterceptor() func(c *gin.Context)

func HTTPTokenAuthInterceptor

func HTTPTokenAuthInterceptor(tokenData string) func(c *gin.Context)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL