servicelocatorx

package
v0.0.528 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: Apache-2.0 Imports: 4 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(o *Options)

func WithContextualizer

func WithContextualizer(ctxer contextx.Contextualizer) Option

func WithGRPCStreamInterceptors

func WithGRPCStreamInterceptors(i ...grpc.StreamServerInterceptor) Option

func WithGRPCUnaryInterceptors

func WithGRPCUnaryInterceptors(i ...grpc.UnaryServerInterceptor) Option

func WithHTTPMiddlewares

func WithHTTPMiddlewares(m ...func(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)) Option

func WithLogger

func WithLogger(l *logrusx.Logger) Option

type Options

type Options struct {
	// contains filtered or unexported fields
}

func NewOptions

func NewOptions(options ...Option) *Options

func (*Options) Contextualizer

func (o *Options) Contextualizer() contextx.Contextualizer

func (*Options) GRPCStreamInterceptors

func (o *Options) GRPCStreamInterceptors() []grpc.StreamServerInterceptor

func (*Options) GRPCUnaryInterceptors

func (o *Options) GRPCUnaryInterceptors() []grpc.UnaryServerInterceptor

func (*Options) HTTPMiddlewares

func (o *Options) HTTPMiddlewares() []func(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)

func (*Options) Logger

func (o *Options) Logger() *logrusx.Logger

Jump to

Keyboard shortcuts

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