Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultPath = "examples/config.yaml"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Server `yaml:"server"` Routes map[string]*Route `yaml:"routes"` // NOTE: Why not RWMutex? sync.Mutex }
func LoadConfig ¶
type Route ¶
type Route struct { Upstreams []string `yaml:"upstreams"` LoadBalancerPolicy balancer.LoadBalancerPolicy `yaml:"lb_policy"` // FIXME: Currently doesn't seem to be possible to unmarshal directly into a slice of MiddlewareInternalRepr MiddlewareInternalRepr map[middleware.MiddlewareType]interface{} `yaml:"middleware"` // contains filtered or unexported fields }
func (*Route) Middleware ¶
func (r *Route) Middleware() []middleware.Middleware
FIXME: Temporary solution for testing purposes
Click to show internal directories.
Click to hide internal directories.