middleware

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthFunc

func AuthFunc(authenticator authn.Authenticator) grpc_auth.AuthFunc

func NewLoggingInterceptor

func NewLoggingInterceptor(logger logger.Logger) grpc.UnaryServerInterceptor

func NewRequestIDInterceptor added in v0.3.3

func NewRequestIDInterceptor(logger logger.Logger) grpc.UnaryServerInterceptor

NewRequestIDInterceptor creates a grpc.UnaryServerInterceptor which must come after the trace interceptor and before the logging interceptor.

func NewStoreIDInterceptor added in v0.3.5

func NewStoreIDInterceptor() grpc.UnaryServerInterceptor

NewStoreIDInterceptor creates a grpc.UnaryServerInterceptor which must come after the trace interceptor and before the logging interceptor.

func NewStreamingLoggingInterceptor

func NewStreamingLoggingInterceptor(logger logger.Logger) grpc.StreamServerInterceptor

func NewStreamingRequestIDInterceptor added in v0.3.3

func NewStreamingRequestIDInterceptor(logger logger.Logger) grpc.StreamServerInterceptor

NewStreamingRequestIDInterceptor creates a grpc.StreamServerInterceptor which must come after the trace interceptor and before the logging interceptor.

func NewStreamingStoreIDInterceptor added in v0.3.5

func NewStreamingStoreIDInterceptor() grpc.StreamServerInterceptor

NewStreamingStoreIDInterceptor creates a grpc.StreamServerInterceptor and must come after the trace interceptor and before the logging interceptor.

func RequestIDFromContext added in v0.3.3

func RequestIDFromContext(ctx context.Context) (string, bool)

func StoreIDFromContext added in v0.3.5

func StoreIDFromContext(ctx context.Context) (string, bool)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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