Documentation ¶
Index ¶
- Constants
- Variables
- func BuildDirectTarget(name string, endpoints ...string) string
- func BuildDiscoveryTarget(service string) string
- func Interpret(ep string) (address, serverName string)
- func NewDirectBuilder() resolver.Builder
- func NewDiscoveryBuilder(disco discovery.Discovery) resolver.Builder
- type CredsRequirement
Constants ¶
View Source
const ( DnsScheme = "dns" K8sScheme = "k8s" DirectScheme = "direct" DiscoveryScheme = "discovery" EndpointSep = "," )
Variables ¶
View Source
var Replica = 1
Functions ¶
func BuildDirectTarget ¶
BuildDirectTarget direct://localhost:8080,localhost:8081
func BuildDiscoveryTarget ¶ added in v0.2.11
BuildDiscoveryTarget discovery://test-service:8080
func Interpret ¶
Interpret endpoint parses an endpoint of the form (http|https)://<host>*|(unix|unixs)://<path>) and returns low-level address (supported by 'net') to connect to, and a server name used for x509 certificate matching.
func NewDirectBuilder ¶ added in v0.2.11
Types ¶
type CredsRequirement ¶
type CredsRequirement int
const ( // CREDS_REQUIRE - Credentials/certificate required for thi type of connection. CREDS_REQUIRE CredsRequirement = iota // CREDS_DROP - Credentials/certificate not needed and should get ignored. CREDS_DROP // CREDS_OPTIONAL - Credentials/certificate might be used if supplied CREDS_OPTIONAL )
Click to show internal directories.
Click to hide internal directories.