Documentation ¶
Index ¶
- func NewResolver(logger logger.Logger) nr.Resolver
- type AgentServiceCheck
- type AgentServiceChecks
- type AgentServiceConnect
- type AgentServiceConnectProxyConfig
- type AgentServiceRegistration
- type AgentWeights
- type Config
- type ExposeConfig
- type ExposePath
- type HttpBasicAuth
- type MeshGatewayConfig
- type MeshGatewayMode
- type QueryOptions
- type ServiceAddress
- type TLSConfig
- type Upstream
- type UpstreamDestType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AgentServiceCheck ¶
type AgentServiceCheck struct { Args []string CheckID string Name string DockerContainerID string Shell string Interval string Timeout string TTL string HTTP string Method string TCP string Status string Notes string GRPC string AliasNode string AliasService string DeregisterCriticalServiceAfter string Header map[string][]string TLSSkipVerify bool GRPCUseTLS bool }
type AgentServiceChecks ¶
type AgentServiceChecks []*AgentServiceCheck
type AgentServiceConnect ¶
type AgentServiceConnect struct { Native bool SidecarService *AgentServiceRegistration }
type AgentServiceConnectProxyConfig ¶
type AgentServiceConnectProxyConfig struct { DestinationServiceName string DestinationServiceID string LocalServiceAddress string LocalServicePort int Config map[string]interface{} Upstreams []Upstream MeshGateway MeshGatewayConfig Expose ExposeConfig }
type AgentServiceRegistration ¶
type AgentServiceRegistration struct { Kind string // original: type ServiceKind string ID string Name string Tags []string Port int Address string TaggedAddresses map[string]ServiceAddress EnableTagOverride bool Meta map[string]string Weights *AgentWeights Check *AgentServiceCheck Checks AgentServiceChecks Proxy *AgentServiceConnectProxyConfig Connect *AgentServiceConnect }
type AgentWeights ¶
type ExposeConfig ¶
type ExposeConfig struct { Checks bool Paths []ExposePath }
type ExposePath ¶
type HttpBasicAuth ¶
type MeshGatewayConfig ¶
type MeshGatewayConfig struct {
Mode MeshGatewayMode
}
type MeshGatewayMode ¶
type MeshGatewayMode string
type QueryOptions ¶
type QueryOptions struct { Datacenter string WaitHash string Token string Near string Filter string MaxAge time.Duration StaleIfError time.Duration WaitIndex uint64 WaitTime time.Duration NodeMeta map[string]string AllowStale bool RequireConsistent bool UseCache bool RelayFactor uint8 LocalOnly bool Connect bool }
type ServiceAddress ¶
type Upstream ¶
type Upstream struct { DestinationType UpstreamDestType DestinationNamespace string DestinationName string Datacenter string LocalBindAddress string LocalBindPort int Config map[string]interface{} MeshGateway MeshGatewayConfig }
type UpstreamDestType ¶
type UpstreamDestType string
Click to show internal directories.
Click to hide internal directories.