# Packages
No description provided by the author
# Functions
Initialize is the top-level function for bootstrapping the service discovery infrastructure using a Viper instance.
NewAccessorFactory uses a set of Options to produce an AccessorFactory.
NewAccessorSubscription subscribes to a watch and updates an atomic Accessor in response to updated service endpoints.
NewOptions produces an Options from a Viper instance.
NewRedirectHandler produces an http.Handler which simply redirects all requests using the results of an Accessor hash.
NewRegistrarWatcher produces a serversets.ServerSet using a supplied set of options.
ParseHostPort parses a value of the form returned by net.JoinHostPort and produces a base URL.
ParseRegistration accepts a string containing host and port and an optional scheme and returns the host and port for registering as an endpoint.
RegisterAll registers all host:port strings found in o.Registrations.
ReplaceHostPort accepts a hostPort value of the form produced by ParseHostPort and returns a URL with the scheme, host, and port replaced in the original URL.
Subscribe consumes watch events and invokes a subscription function with the endpoints.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DiscoveryKey is the default Viper subkey used for service discovery configuration.
# Structs
Options represents the set of configurable attributes for service discovery and registration.
# Interfaces
Accessor provides access to services based around []byte keys.
AccessorFactory is a Factory Interface for creating service Accessors.
AccessorSubscription represents an Accessor whose state changes as the result of events via a subscription.
Registrar is the interface which is used to register endpoints.
RegistrarWatcher is simply the union of the serversets interfaces in this package.
Watch is the subset of methods required by this package that *serversets.Watch implements.
Watcher is the interface used to observe changes to the set of endpoints.