Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Binary is the standard port that clients interact with on services. Binary = "binary" // Wildcard may be used in the User and Service fields of Name to recieve updates // from multiple services. Wildcard = "*" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // Lookup looks up the Record for the given Name. Lookup(Name) (Record, error) // Watch monitors service records for changes. // Watch will send updates for all services which match the provided query. // Every service that exists that matches will send an update on the channel. // Cluster must be a valid cluster name. Watch(context.Context, Name) (<-chan Update, error) }
var DefaultClient Client = &dnsClient{}
Click to show internal directories.
Click to hide internal directories.