Documentation ¶
Index ¶
- type Option
- func WithContextualizer(ctxer contextx.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
- type Options
- func (o *Options) Contextualizer() contextx.Contextualizer
- func (o *Options) GRPCStreamInterceptors() []grpc.StreamServerInterceptor
- func (o *Options) GRPCUnaryInterceptors() []grpc.UnaryServerInterceptor
- func (o *Options) HTTPMiddlewares() []func(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)
- func (o *Options) Logger() *logrusx.Logger
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 ¶
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
func NewOptions ¶
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)
Click to show internal directories.
Click to hide internal directories.