middleware

package
v0.0.0-...-4b256d5 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: Apache-2.0 Imports: 10 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 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