Documentation ¶
Index ¶
- func Options(options ...Option) *opts
- type Contextualizer
- type ContextualizerProvider
- type DefaultContextualizer
- type Option
- func WithContextualizer(ctxer Contextualizer) Option
- func WithGRPCStreamInterceptors(i ...grpc.StreamServerInterceptor) Option
- func WithGRPCUnaryInterceptors(i ...grpc.UnaryServerInterceptor) Option
- func WithHTTPMiddlewares(m ...func(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)) Option
- func WithLogger(l *logrusx.Logger) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Contextualizer ¶
type ContextualizerProvider ¶
type ContextualizerProvider interface {
Contextualizer() Contextualizer
}
type DefaultContextualizer ¶
type DefaultContextualizer struct{}
type Option ¶
type Option func(o *opts)
func WithContextualizer ¶
func WithContextualizer(ctxer 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 ¶
Click to show internal directories.
Click to hide internal directories.