Documentation ¶
Index ¶
Constants ¶
View Source
const ( RULES_CONFIG_STORAGE_PG = "postgres" RULES_CONFIG_STORAGE_GS = "gs" RULES_CONFIG_STORAGE_FILE = "file" RULES_CONFIG_STORAGE_MEM = "mem" )
Variables ¶
Functions ¶
Types ¶
type ConfigRepository ¶
type MiddlewareSpec ¶
type MiddlewareSpecs ¶
type MiddlewareSpecs []MiddlewareSpec
func (MiddlewareSpecs) Get ¶
func (m MiddlewareSpecs) Get(name string) (MiddlewareSpec, bool)
type Rule ¶
type Rule struct { Frontend Frontend `yaml:"frontend"` Backend Backend `yaml:"backend"` Middlewares MiddlewareSpecs `yaml:"middlewares"` Hooks HookSpecs `yaml:"hooks"` }
type Ruleset ¶
type Ruleset struct {
Rules []Rule `yaml:"rules"`
}
func YamlRulesetToRuleset ¶ added in v0.6.34
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(configRepository ConfigRepository) *Service
func (Service) GetAllConfigs ¶
Click to show internal directories.
Click to hide internal directories.