Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertUpstream ¶
func ToProxyHeaders ¶
func ToProxyHeaders(p []*ProxyHeader) []*upstream.ProxyHeader
Types ¶
type DiscoverConfig ¶
type NodeConfig ¶
type ProxyHeader ¶
type ProxyHeader struct {
Key string `json:"key"`
Value string `json:"value"`
OptType string `json:"opt_type"`
}
func FromProxyHeaders ¶
func FromProxyHeaders(p []*upstream.ProxyHeader) []*ProxyHeader
type Upstream ¶
type Upstream struct {
Type string `json:"driver"`
Balance string `json:"balance"`
Timeout int `json:"timeout"`
Retry int `json:"retry"`
Remark string `json:"remark"`
LimitPeerSecond int `json:"limit_peer_second"`
ProxyHeaders []*ProxyHeader `json:"proxy_headers"`
Scheme string `json:"scheme"`
PassHost string `json:"pass_host"`
UpstreamHost string `json:"upstream_host"`
Nodes []*NodeConfig `json:"nodes"`
Discover *DiscoverConfig `json:"discover"`
}
func FromClusterConfig ¶
type UpstreamConfig ¶
type UpstreamConfig *Upstream
Click to show internal directories.
Click to hide internal directories.