Documentation ¶
Overview ¶
Package kedge_config_http_routes is a generated protocol buffer package.
It is generated from these files:
kedge/config/http/adhoc/routes.proto
It has these top-level messages:
Route
Index ¶
- Variables
- type ProxyMode
- type Route
- func (*Route) Descriptor() ([]byte, []int)
- func (m *Route) GetBackendName() string
- func (m *Route) GetHeaderMatcher() map[string]string
- func (m *Route) GetHostMatcher() string
- func (m *Route) GetPathRules() []string
- func (m *Route) GetProxyMode() ProxyMode
- func (*Route) ProtoMessage()
- func (m *Route) Reset()
- func (m *Route) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ProxyMode_name = map[int32]string{
0: "ANY",
1: "REVERSE_PROXY",
2: "FORWARD_PROXY",
}
View Source
var ProxyMode_value = map[string]int32{
"ANY": 0,
"REVERSE_PROXY": 1,
"FORWARD_PROXY": 2,
}
Functions ¶
This section is empty.
Types ¶
type ProxyMode ¶
type ProxyMode int32
const ( ProxyMode_ANY ProxyMode = 0 // / Reverse Proxy is when the FE serves an authority (Host) publicly and clients connect to that authority // / directly. This is used to expose publicly DNS-resolvable names. ProxyMode_REVERSE_PROXY ProxyMode = 1 // / Forward Proxy is when the FE serves as an HTTP_PROXY for a browser or an application. The resolution of the // / backend is done by the FE itself, so non-public names can be addressed. // / This may be from the 90s, but it still is very useful. // / // / IMPORTANT: If you have a PAC file configured in Firefox, the HTTPS rule behaves differently than in Chrome. The // / proxied requests are not FORWARD_PROXY requests but REVERSE_PROXY_REQUESTS. ProxyMode_FORWARD_PROXY ProxyMode = 2 )
func (ProxyMode) EnumDescriptor ¶
type Route ¶
type Route struct { // / backend_name is the string identifying the HTTP backend pool to send data to. BackendName string `protobuf:"bytes,1,opt,name=backend_name,json=backendName" json:"backend_name,omitempty"` // / path_rules is a globbing expression that matches a URL path of the request. // / See: https://cloud.google.com/compute/docs/load-balancing/http/url-map // / If not present, '/*' is default. PathRules []string `protobuf:"bytes,2,rep,name=path_rules,json=pathRules" json:"path_rules,omitempty"` // / host_matcher matches on the ':authority' header (a.k.a. Host header) enabling Virtual Host-like proxying. // / The matching is done through lower-case string-equality. // / If none are present, the route skips ':authority' checks. HostMatcher string `protobuf:"bytes,3,opt,name=host_matcher,json=hostMatcher" json:"host_matcher,omitempty"` // / metadata_matcher matches any HTTP inbound request Headers. // / Eeach key provided must find a match for the route to match. // / The matching is done through lower-case key match and explicit string-equality of values. // / If none are present, the route skips metadata checks. HeaderMatcher map[string]string `` /* 167-byte string literal not displayed */ // / proxy_mode controlls what kind of inbound requests this route matches. See ProxyMode ProxyMode `protobuf:"varint,5,opt,name=proxy_mode,json=proxyMode,enum=kedge.config.http.routes.ProxyMode" json:"proxy_mode,omitempty"` }
/ Backend is a gRPC ClientConn pool maintained to a single serivce.
func (*Route) Descriptor ¶
func (*Route) GetBackendName ¶
func (*Route) GetHeaderMatcher ¶
func (*Route) GetHostMatcher ¶
func (*Route) GetPathRules ¶
func (*Route) GetProxyMode ¶
func (*Route) ProtoMessage ¶
func (*Route) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.