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) GetAuthorityMatcher() string
- func (m *Route) GetAutogenerated() bool
- func (m *Route) GetBackendName() string
- func (m *Route) GetMetadataMatcher() map[string]string
- func (m *Route) GetPortMatcher() uint32
- 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_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. AuthorityMatcher string `protobuf:"bytes,3,opt,name=authority_matcher,json=authorityMatcher" json:"authority_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 */ // / Optional port matcher. If 0 route will ignore port. // TODO(bplotka): Add support to this in code. PortMatcher uint32 `protobuf:"varint,5,opt,name=port_matcher,json=portMatcher" json:"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) GetAuthorityMatcher ¶
func (*Route) GetAutogenerated ¶
func (*Route) GetBackendName ¶
func (*Route) GetMetadataMatcher ¶
func (*Route) GetPortMatcher ¶
func (*Route) GetServiceNameMatcher ¶
func (*Route) ProtoMessage ¶
func (*Route) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.