middleware

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StreamServerInterceptor

func StreamServerInterceptor(opts ...Option) grpc.StreamServerInterceptor

@TODO

func UnaryServerInterceptor

func UnaryServerInterceptor(opts ...Option) grpc.UnaryServerInterceptor

Types

type AuthHandlerFunc

type AuthHandlerFunc func(context.Context) (context.Context, error)

type Option

type Option func(*Options)

func WithAuthFunc

func WithAuthFunc(f AuthHandlerFunc) Option

func WithLogLevel

func WithLogLevel(level log.Level) Option

func WithRecoverFunc

func WithRecoverFunc(f RecoveryHandlerFunc) Option

type Options

type Options struct {
	// contains filtered or unexported fields
}

type RecoveryHandlerFunc

type RecoveryHandlerFunc func(context.Context, interface{}) error

type ServiceAuthFuncOverride

type ServiceAuthFuncOverride interface {
	AuthFuncOverride(ctx context.Context, fullMethodName string) (context.Context, error)
}

Jump to

Keyboard shortcuts

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