MCPcopy Index your code
hub / github.com/go-kit/kit / DefaultEndpointer

Struct DefaultEndpointer

sd/endpointer.go:69–73  ·  view source on GitHub ↗

DefaultEndpointer implements an Endpointer interface. When created with NewEndpointer function, it automatically registers as a subscriber to events from the Instances and maintains a list of active Endpoints.

Source from the content-addressed store, hash-verified

67// as a subscriber to events from the Instances and maintains a list
68// of active Endpoints.
69type DefaultEndpointer struct {
70 cache *endpointCache
71 instancer Instancer
72 ch chan Event
73}
74
75func (de *DefaultEndpointer) receive() {
76 for event := range de.ch {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected