Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultEndpointer ¶
type DefaultEndpointer struct {
// contains filtered or unexported fields
}
func (*DefaultEndpointer) Close ¶
func (de *DefaultEndpointer) Close() error
type Endpointer ¶
Endpointer resolves a set of live Endpoints from a service-discovery source. It subscribes to an Instancer and keeps an EndpointCache up to date. Close must be called to stop the background goroutine and release resources.
func NewEndpointer ¶
func NewEndpointer(src interfaces.Instancer, f endpoint.Factory, logger *log.Logger, options ...endpoint.EndpointerOption) Endpointer
NewEndpointer creates an Endpointer that subscribes to src and builds Endpoints using f. It starts a background goroutine to process events; call Close() on the returned value to stop it.
Click to show internal directories.
Click to hide internal directories.