middleware

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2025 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interceptor

type Interceptor struct {
}

Interceptor

func NewInterceptor

func NewInterceptor() *Interceptor

InterceptorManager constructor

func (*Interceptor) Logger

func (im *Interceptor) Logger(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (resp interface{}, err error)

Logger Interceptor

func (*Interceptor) Metrics

func (im *Interceptor) Metrics(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)

type Middleware

type Middleware struct {
}

func NewMiddleware

func NewMiddleware() *Middleware

func (*Middleware) Logger

func (m *Middleware) Logger() echo.MiddlewareFunc

func (*Middleware) Metrics

func (m *Middleware) Metrics() echo.MiddlewareFunc

Jump to

Keyboard shortcuts

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