Documentation
¶
Index ¶
- type Host
- func (*Host) Descriptor() ([]byte, []int)
- func (this *Host) Equal(that interface{}) bool
- func (m *Host) GetAddr() string
- func (m *Host) GetHealthCheckConfig() *Host_HealthCheckConfig
- func (m *Host) GetPort() uint32
- func (m *Host) Hash(hasher hash.Hash64) (uint64, error)
- func (*Host) ProtoMessage()
- func (m *Host) Reset()
- func (m *Host) String() string
- func (m *Host) XXX_DiscardUnknown()
- func (m *Host) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Host) XXX_Merge(src proto.Message)
- func (m *Host) XXX_Size() int
- func (m *Host) XXX_Unmarshal(b []byte) error
- type Host_HealthCheckConfig
- func (*Host_HealthCheckConfig) Descriptor() ([]byte, []int)
- func (this *Host_HealthCheckConfig) Equal(that interface{}) bool
- func (m *Host_HealthCheckConfig) GetPath() string
- func (m *Host_HealthCheckConfig) Hash(hasher hash.Hash64) (uint64, error)
- func (*Host_HealthCheckConfig) ProtoMessage()
- func (m *Host_HealthCheckConfig) Reset()
- func (m *Host_HealthCheckConfig) String() string
- func (m *Host_HealthCheckConfig) XXX_DiscardUnknown()
- func (m *Host_HealthCheckConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Host_HealthCheckConfig) XXX_Merge(src proto.Message)
- func (m *Host_HealthCheckConfig) XXX_Size() int
- func (m *Host_HealthCheckConfig) XXX_Unmarshal(b []byte) error
- type UpstreamSpec
- func (*UpstreamSpec) Descriptor() ([]byte, []int)
- func (this *UpstreamSpec) Equal(that interface{}) bool
- func (m *UpstreamSpec) GetHosts() []*Host
- func (m *UpstreamSpec) GetServiceSpec() *options.ServiceSpec
- func (m *UpstreamSpec) GetUseTls() bool
- func (m *UpstreamSpec) Hash(hasher hash.Hash64) (uint64, error)
- func (*UpstreamSpec) ProtoMessage()
- func (m *UpstreamSpec) Reset()
- func (m *UpstreamSpec) String() string
- func (m *UpstreamSpec) XXX_DiscardUnknown()
- func (m *UpstreamSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpstreamSpec) XXX_Merge(src proto.Message)
- func (m *UpstreamSpec) XXX_Size() int
- func (m *UpstreamSpec) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Host ¶
type Host struct { // Address (hostname or IP) Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` // Port the instance is listening on Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` // (Enterprise Only): Host specific health checking configuration. HealthCheckConfig *Host_HealthCheckConfig `protobuf:"bytes,3,opt,name=health_check_config,json=healthCheckConfig,proto3" json:"health_check_config,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Represents a single instance of an upstream
func (*Host) Descriptor ¶
func (*Host) GetHealthCheckConfig ¶ added in v1.4.10
func (m *Host) GetHealthCheckConfig() *Host_HealthCheckConfig
func (*Host) ProtoMessage ¶
func (*Host) ProtoMessage()
func (*Host) XXX_DiscardUnknown ¶
func (m *Host) XXX_DiscardUnknown()
func (*Host) XXX_Unmarshal ¶
type Host_HealthCheckConfig ¶ added in v1.4.10
type Host_HealthCheckConfig struct { // (Enterprise Only): Path to use when health checking this specific host. Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Host_HealthCheckConfig) Descriptor ¶ added in v1.4.10
func (*Host_HealthCheckConfig) Descriptor() ([]byte, []int)
func (*Host_HealthCheckConfig) Equal ¶ added in v1.4.10
func (this *Host_HealthCheckConfig) Equal(that interface{}) bool
func (*Host_HealthCheckConfig) GetPath ¶ added in v1.4.10
func (m *Host_HealthCheckConfig) GetPath() string
func (*Host_HealthCheckConfig) Hash ¶ added in v1.4.10
func (m *Host_HealthCheckConfig) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*Host_HealthCheckConfig) ProtoMessage ¶ added in v1.4.10
func (*Host_HealthCheckConfig) ProtoMessage()
func (*Host_HealthCheckConfig) Reset ¶ added in v1.4.10
func (m *Host_HealthCheckConfig) Reset()
func (*Host_HealthCheckConfig) String ¶ added in v1.4.10
func (m *Host_HealthCheckConfig) String() string
func (*Host_HealthCheckConfig) XXX_DiscardUnknown ¶ added in v1.4.10
func (m *Host_HealthCheckConfig) XXX_DiscardUnknown()
func (*Host_HealthCheckConfig) XXX_Marshal ¶ added in v1.4.10
func (m *Host_HealthCheckConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Host_HealthCheckConfig) XXX_Merge ¶ added in v1.4.10
func (m *Host_HealthCheckConfig) XXX_Merge(src proto.Message)
func (*Host_HealthCheckConfig) XXX_Size ¶ added in v1.4.10
func (m *Host_HealthCheckConfig) XXX_Size() int
func (*Host_HealthCheckConfig) XXX_Unmarshal ¶ added in v1.4.10
func (m *Host_HealthCheckConfig) XXX_Unmarshal(b []byte) error
type UpstreamSpec ¶
type UpstreamSpec struct { // A list of addresses and ports // at least one must be specified Hosts []*Host `protobuf:"bytes,1,rep,name=hosts,proto3" json:"hosts,omitempty"` // Attempt to use outbound TLS // Gloo will automatically set this to true for port 443 UseTls bool `protobuf:"varint,3,opt,name=use_tls,json=useTls,proto3" json:"use_tls,omitempty"` // An optional Service Spec describing the service listening at this address ServiceSpec *options.ServiceSpec `protobuf:"bytes,5,opt,name=service_spec,json=serviceSpec,proto3" json:"service_spec,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Static upstreams are used to route request to services listening at fixed IP/Host & Port pairs. Static upstreams can be used to proxy any kind of service, and therefore contain a ServiceSpec for additional service-specific configuration. Unlike upstreams created by service discovery, Static Upstreams must be created manually by users
func (*UpstreamSpec) Descriptor ¶
func (*UpstreamSpec) Descriptor() ([]byte, []int)
func (*UpstreamSpec) Equal ¶
func (this *UpstreamSpec) Equal(that interface{}) bool
func (*UpstreamSpec) GetHosts ¶
func (m *UpstreamSpec) GetHosts() []*Host
func (*UpstreamSpec) GetServiceSpec ¶
func (m *UpstreamSpec) GetServiceSpec() *options.ServiceSpec
func (*UpstreamSpec) GetUseTls ¶
func (m *UpstreamSpec) GetUseTls() bool
func (*UpstreamSpec) Hash ¶ added in v1.2.13
func (m *UpstreamSpec) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*UpstreamSpec) ProtoMessage ¶
func (*UpstreamSpec) ProtoMessage()
func (*UpstreamSpec) Reset ¶
func (m *UpstreamSpec) Reset()
func (*UpstreamSpec) String ¶
func (m *UpstreamSpec) String() string
func (*UpstreamSpec) XXX_DiscardUnknown ¶
func (m *UpstreamSpec) XXX_DiscardUnknown()
func (*UpstreamSpec) XXX_Marshal ¶
func (m *UpstreamSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpstreamSpec) XXX_Merge ¶
func (m *UpstreamSpec) XXX_Merge(src proto.Message)
func (*UpstreamSpec) XXX_Size ¶
func (m *UpstreamSpec) XXX_Size() int
func (*UpstreamSpec) XXX_Unmarshal ¶
func (m *UpstreamSpec) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.