Documentation ¶
Overview ¶
Package fileprovider provides a file-based discovery provider.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Version string `yaml:"version"` NotMatched *Respond `yaml:"not-matched"` Rules []Rule `yaml:"rules"` Upstreams map[string]Upstream `yaml:"upstreams"` }
Config defines a set of rules for the proxy to use.
type File ¶
File discovers the changes in routing rules from a file.
type Respond ¶
type Respond struct { Body *string `yaml:"body"` Metadata *struct { Header map[string]string `yaml:"header"` Trailer map[string]string `yaml:"trailer"` } `yaml:"metadata"` Status *struct { Code string `yaml:"code"` Message string `yaml:"message"` } `yaml:"status"` }
Respond specifies how the service should respond to the request.
Click to show internal directories.
Click to hide internal directories.