middleware

package
v0.15.0-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendCustomHeaderMiddleware

func AppendCustomHeaderMiddleware(next runtime.HandlerFunc) runtime.HandlerFunc

func CustomMatcher

func CustomMatcher(key string) (string, bool)

func ErrorHandler

func ErrorHandler(ctx context.Context, mux *runtime.ServeMux, marshaler runtime.Marshaler, w http.ResponseWriter, r *http.Request, err error)

func HttpResponseModifier

func HttpResponseModifier(ctx context.Context, w http.ResponseWriter, p proto.Message) error

func RecoveryInterceptorOpt

func RecoveryInterceptorOpt() grpc_recovery.Option

RecoveryInterceptor - panic handler

func StreamAppendMetadataInterceptor

func StreamAppendMetadataInterceptor(srv interface{}, stream grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error

CustomInterceptor - append metadatas for stream

func UnaryAppendMetadataInterceptor

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

CustomInterceptor - append metadatas for unary

Types

This section is empty.

Jump to

Keyboard shortcuts

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