Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { HTTPAddressSpec string Discovery api.ServiceDiscovery Rules api.RulesService TLSConfig *envoy.SSLContext }
Config encapsulates REST server configuration parameters
type Discovery ¶
type Discovery struct {
// contains filtered or unexported fields
}
Discovery handles discovery API calls
func NewDiscovery ¶
func NewDiscovery(discovery api.ServiceDiscovery, rules api.RulesService, tlsConfig *envoy.SSLContext) *Discovery
NewDiscovery creates struct
type Host ¶
type Host struct { IPAddr string `json:"ip_address"` Port uint16 `json:"port"` Tags map[string]string `json:"tags"` }
Host is the endpoint and tag data for a service instance
type Hosts ¶
type Hosts struct {
Hosts []Host `json:"hosts"`
}
Hosts is the array of hosts returned by the GET registration
type Server ¶
type Server interface { Start() error Stop() }
Server defines an interface for controlling server lifecycle
func NewDiscoveryServer ¶
NewDiscoveryServer creates a new server based on the provided configuration options. Returns a valid Server interface on success or an error on failure
type VirtualHosts ¶
type VirtualHosts struct {
VirtualHosts []envoy.VirtualHost `json:"virtual_hosts"`
}
VirtualHosts is the array of route info returned by GET routes
Click to show internal directories.
Click to hide internal directories.