middleware_rpc

package
v0.0.0-...-9f4bb82 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MiddlewareRPCSet = wire.NewSet(wire.Struct(new(MiddlewareRPC), "*"))

Functions

func ChainUnaryInterceptors

func ChainUnaryInterceptors(interceptorMap map[string][]grpc.UnaryServerInterceptor) grpc.UnaryServerInterceptor

连接多个 UnaryInterceptor

Types

type IMiddlewareRPC

type IMiddlewareRPC interface {
	GenOkMsg(context.Context, string) string
	GenErrMsg(context.Context, string, error) error
}

type MiddlewareRPC

type MiddlewareRPC struct {
	AuthRPC      *auth.AuthRPC
	ValidatorRPC *validator.ValidatorRPC
	TracingRPC   *tracing.TracingRPC
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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