Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDenied = herodot.ErrUnauthorized
Functions ¶
This section is empty.
Types ¶
type Middleware ¶ added in v0.40.1
type Middleware interface { UnaryInterceptor() grpc.UnaryServerInterceptor StreamInterceptor() grpc.StreamServerInterceptor HealthxReadyCheckers() healthx.ReadyCheckers }
type Option ¶
type Option func(*options)
func WithConfigFile ¶
WithConfigFile sets the path to the config file to use for the middleware.
func WithConfigOption ¶ added in v0.40.2
func WithConfigOption(option configx.OptionModifier) Option
WithConfigOption sets a config option for the middleware. The following options will be set regardless: - configx.WithContext - configx.WithLogger - configx.WithConfigFiles - configx.DisableEnvLoading
func WithLogger ¶ added in v0.40.1
WithLogger sets the logger for the middleware.
Click to show internal directories.
Click to hide internal directories.