Documentation ¶
Overview ¶
Package kedge_config_grpc_routes is a generated protocol buffer package.
It is generated from these files:
kedge/config/grpc/routes/routes.proto
It has these top-level messages:
Route
Package kedge_config_grpc_routes is a generated protocol buffer package.
It is generated from these files:
kedge/config/grpc/routes/routes.proto
It has these top-level messages:
Route
Index ¶
- type Route
- func (*Route) Descriptor() ([]byte, []int)
- func (m *Route) GetAuthorityHostMatcher() string
- func (m *Route) GetAuthorityPortMatcher() uint32
- func (m *Route) GetAutogenerated() bool
- func (m *Route) GetBackendName() string
- func (m *Route) GetMetadataMatcher() map[string]string
- func (m *Route) GetServiceNameMatcher() string
- func (*Route) ProtoMessage()
- func (m *Route) Reset()
- func (m *Route) String() string
- func (this *Route) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Route ¶
type Route struct { // / backend_name is the string identifying the backend to send data to. BackendName string `protobuf:"bytes,1,opt,name=backend_name,json=backendName" json:"backend_name,omitempty"` // / service_name_matcher is a globbing expression that matches a full gRPC service name. // / For example a method call to 'com.example.MyService/Create' would be matched by: // / - com.example.MyService // / - com.example.* // / - com.* // / - * // / If not present, '*' is default. ServiceNameMatcher string `protobuf:"bytes,2,opt,name=service_name_matcher,json=serviceNameMatcher" json:"service_name_matcher,omitempty"` // / authority_host_matcher matches on the host part of 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. AuthorityHostMatcher string `protobuf:"bytes,3,opt,name=authority_host_matcher,json=authorityHostMatcher" json:"authority_host_matcher,omitempty"` // / metadata_matcher matches any gRPC inbound request metadata. // / Each 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 a given metadata entry has more than one string value, at least one of them needs to match. // / If none are present, the route skips metadata checks. MetadataMatcher map[string]string `` /* 173-byte string literal not displayed */ // / authority_port_matcher is optional port matcher. It matches on the port part of the ':authority' header. // If 0 route will ignore port. AuthorityPortMatcher uint32 `protobuf:"varint,5,opt,name=authority_port_matcher,json=authorityPortMatcher" json:"authority_port_matcher,omitempty"` Autogenerated bool `protobuf:"varint,6,opt,name=autogenerated" json:"autogenerated,omitempty"` }
/ Route is a mapping between invoked gRPC requests and backends that should serve it.
func (*Route) Descriptor ¶
func (*Route) GetAuthorityHostMatcher ¶
func (*Route) GetAuthorityPortMatcher ¶
func (*Route) GetAutogenerated ¶
func (*Route) GetBackendName ¶
func (*Route) GetMetadataMatcher ¶
func (*Route) GetServiceNameMatcher ¶
func (*Route) ProtoMessage ¶
func (*Route) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.