middleware

package
v0.0.0-...-136a2fa Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Middleware

type Middleware interface {
	UnaryInterceptor() grpc.UnaryServerInterceptor
	StreamInterceptor() grpc.StreamServerInterceptor
}

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 WithLogger

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