import "go.etcd.io/etcd/clientv3/balancer/resolver/endpoint"
Package endpoint resolves etcd entpoints using grpc targets of the form 'endpoint://<id>/<endpoint>'.
IsTarget checks if a given target string in an endpoint resolver target.
ParseEndpoint endpoint parses an endpoint of the form (http|https)://<host>*|(unix|unixs)://<path>) and returns a protocol ('tcp' or 'unix'), host (or filepath if a unix socket), scheme (http, https, unix, unixs).
ParseHostPort splits a "<host>:<port>" string into the host and port parts. The port part is optional.
ParseTarget parses a endpoint://<id>/<endpoint> string and returns the parsed id and endpoint. If the target is malformed, an error is returned.
Target constructs a endpoint resolver target.
Resolver provides a resolver for a single etcd cluster, identified by name.
func (*Resolver) ResolveNow(o resolver.ResolveNowOption)
type ResolverGroup struct {
// contains filtered or unexported fields
}
ResolverGroup keeps all endpoints of resolvers using a common endpoint://<id>/ target up-to-date.
func NewResolverGroup(id string) (*ResolverGroup, error)
NewResolverGroup creates a new ResolverGroup with the given id.
func (e *ResolverGroup) Close()
func (e *ResolverGroup) SetEndpoints(endpoints []string)
SetEndpoints updates the endpoints for ResolverGroup. All registered resolver are updated immediately with the new endpoints.
func (e *ResolverGroup) Target(endpoint string) string
Target constructs a endpoint target using the endpoint id of the ResolverGroup.
Package endpoint imports 5 packages (graph) and is imported by 8 packages. Updated 2018-08-29. Refresh now. Tools for package owners.