package
Version:
v0.14.0-openmesh
Opens a new window with list of versions in this module.
Published: Nov 11, 2023
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.