Documentation
¶
Index ¶
- func NewClientContextInterceptor(serviceName, secret string) *clientContextInterceptor
- func NewErrInterceptor() *errInterceptor
- func NewLogInterceptor() *logInterceptor
- func NewLogInterceptorWithOptions(options LogOptions) *logInterceptor
- func NewRoleAuthInterceptor(desc RoleAuthDescriptor) *userRoleInterceptor
- func NewServerContextInterceptor(secret string) *serverContextInterceptor
- func RecoverUnaryServerInterceptor() grpc.UnaryServerInterceptor
- type GrpcServerInterceptor
- type LogOptions
- type RoleAuthDescriptor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClientContextInterceptor ¶
func NewClientContextInterceptor(serviceName, secret string) *clientContextInterceptor
NewClientContextInterceptor ..
func NewLogInterceptorWithOptions ¶
func NewLogInterceptorWithOptions( options LogOptions, ) *logInterceptor
NewLogInterceptorWithOptions ..
func NewRoleAuthInterceptor ¶
func NewRoleAuthInterceptor(desc RoleAuthDescriptor) *userRoleInterceptor
NewRoleAuthInterceptor ..
func NewServerContextInterceptor ¶
func NewServerContextInterceptor(secret string) *serverContextInterceptor
NewServerContextInterceptor ..
func RecoverUnaryServerInterceptor ¶
func RecoverUnaryServerInterceptor() grpc.UnaryServerInterceptor
RecoverUnaryServerInterceptor ...
Types ¶
type GrpcServerInterceptor ¶
type GrpcServerInterceptor interface { Unary() grpc.UnaryServerInterceptor Stream() grpc.StreamServerInterceptor }
GrpcServerInterceptor ..
type LogOptions ¶
type LogOptions struct { RedactRequestFunc func(any) any RedactResponseFunc func(any) any RedactCtxValueFunc func(string, any) any LogLevelFunc func(error) func(context.Context, string, ...interface{}) }
LogOptions lets clients configure interceptor behavior
type RoleAuthDescriptor ¶
RoleAuthDescriptor ..
Click to show internal directories.
Click to hide internal directories.