middleware

package
v0.0.0-...-03ee3a8 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GRPCContextStreamWrapper

func GRPCContextStreamWrapper(ctxWrapper func(ctx context.Context) (context.Context, error)) grpc.StreamServerInterceptor

GRPCContextStreamWrapper implements wrapper of stream handler with context overriding

func GRPCContextUnaryWrapper

func GRPCContextUnaryWrapper(ctxWrapper func(ctx context.Context) (context.Context, error)) grpc.UnaryServerInterceptor

GRPCContextUnaryWrapper implements wrapper of unary handler with context overriding

func GRPCErrorStreamWrapper

func GRPCErrorStreamWrapper(srv any, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error

GRPCErrorStreamWrapper implements wrapper of stream handler with error processing

func GRPCErrorUnaryWrapper

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

GRPCErrorUnaryWrapper implements wrapper of unary handler with session in context

func HTTPContextWrapper

func HTTPContextWrapper(h http.Handler, ctxWrapper func(ctx context.Context) context.Context) http.Handler

HTTPContextWrapper global middelware of the HTTP rounter

Types

This section is empty.

Jump to

Keyboard shortcuts

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