config

package
v0.7.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticatorRuleConfig

type AuthenticatorRuleConfig struct {
	Handler string                 `json:"handler" yaml:"handler"`
	Config  map[string]interface{} `json:"config" yaml:"handler"`
}

type Config

type Config struct {
	Prefix     string        `json:"prefix" yaml:"prefix"`
	ServerUrls []string      `json:"server_urls" yaml:"server_urls"`
	Upstream   rule.Upstream `json:"upstream" yaml:"upstream"`

	Authenticators map[string]AuthenticatorRuleConfig `json:"authenticators" yaml:"authenticators"`
	Authorizer     rule.Handler                       `json:"authorizer" yaml:"authorizer"`
	Mutators       []rule.Handler                     `json:"mutators" yaml:"mutators"`
	Errors         []rule.ErrorHandler                `json:"errors" yaml:"errors"`
}

func New

func New(configFilePath string) (*Config, error)

Jump to

Keyboard shortcuts

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