config

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	Name      string     `yaml:"name"`
	Target    string     `yaml:"target"`
	Methods   []string   `yaml:"methods"`
	Frontends []Frontend `yaml:"frontends"`
	Prefix    string     `yaml:"prefix"`
}

type Frontend

type Frontend struct {
	Action      string       `yaml:"action"`
	Path        string       `yaml:"path"`
	Method      string       `yaml:"method"`
	Middlewares []Middleware `yaml:"middlewares"`
	Hooks       []Hook       `yaml:"hooks"`
}

type Hook

type Hook struct {
	Name   string                 `yaml:"name"`
	Config map[string]interface{} `yaml:"config"`
}

type Middleware

type Middleware struct {
	Name   string                 `yaml:"name"`
	Config map[string]interface{} `yaml:"config"`
}

type Rule

type Rule struct {
	Backends []Backend `yaml:"backends"`
}

type Ruleset

type Ruleset struct {
	Rules []Rule `yaml:"rules"`
}

func ParseRulesetYaml

func ParseRulesetYaml(fileBytes []byte) (Ruleset, error)

Jump to

Keyboard shortcuts

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