import "github.com/go-kit/kit/sd/internal/instance"
type Cache struct {
// contains filtered or unexported fields
}
Cache keeps track of resource instances provided to it via Update method and implements the Instancer interface
NewCache creates a new Cache.
Deregister implements Instancer.
Register implements Instancer.
State returns the current state of discovery (instances or error) as sd.Event
Stop implements Instancer. Since the cache is just a plain-old store of data, Stop is a no-op.
Update receives new instances from service discovery, stores them internally, and notifies all registered listeners.
Package instance imports 4 packages (graph) and is imported by 32 packages. Updated 2017-10-07. Refresh now. Tools for package owners.