kedge_config_grpc_routes

package
v1.0.0-beta.7.test-hos... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

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

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) Descriptor() ([]byte, []int)

func (*Route) GetAuthorityMatcher

func (m *Route) GetAuthorityMatcher() string

func (*Route) GetAutogenerated

func (m *Route) GetAutogenerated() bool

func (*Route) GetBackendName

func (m *Route) GetBackendName() string

func (*Route) GetMetadataMatcher

func (m *Route) GetMetadataMatcher() map[string]string

func (*Route) GetPortMatcher

func (m *Route) GetPortMatcher() uint32

func (*Route) GetServiceNameMatcher

func (m *Route) GetServiceNameMatcher() string

func (*Route) ProtoMessage

func (*Route) ProtoMessage()

func (*Route) Reset

func (m *Route) Reset()

func (*Route) String

func (m *Route) String() string

func (*Route) Validate

func (this *Route) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL