mw

package
v0.0.49-alpha.21 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 21 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CorsHandler

func CorsHandler() gin.HandlerFunc

CorsHandler gin cross-domain configuration.

func GinParseOperationID

func GinParseOperationID() gin.HandlerFunc

func GinParseToken added in v0.0.49

func GinParseToken(secretKey jwt.Keyfunc, whitelist []string) gin.HandlerFunc

func GrpcClient

func GrpcClient() grpc.DialOption

func GrpcServer

func GrpcServer() grpc.ServerOption

func InterceptChain

func InterceptChain(intercepts ...grpc.UnaryServerInterceptor) grpc.UnaryServerInterceptor

func RpcClientInterceptor

func RpcClientInterceptor(ctx context.Context, method string, req, resp any, cc *grpc.ClientConn,
	invoker grpc.UnaryInvoker, opts ...grpc.CallOption) (err error)

func RpcServerInterceptor

func RpcServerInterceptor(ctx context.Context, req any, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (any, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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