middleware

package
v0.40.7 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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
}

func New

func New(ctx context.Context, opts ...Option) (Middleware, error)

New creates an Oathkeeper middleware from the options. By default, it tries to read the configuration from the file "oathkeeper.yaml".

type Option

type Option func(*options)

func WithConfigFile

func WithConfigFile(configFile string) Option

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

func WithLogger(logger *logrusx.Logger) Option

WithLogger sets the logger for the middleware.

Jump to

Keyboard shortcuts

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