Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { io.Closer // GetDevicesByID returns the devices that match the given device ID GetDevicesByID(id device.ID) []*Info // GetDevicesByType gets all devices of the given type GetDevicesByType(deviceType device.Type) []*Info // GetDevicesByVersion gets all devices of the given type/version GetDevicesByVersion(deviceType device.Type, deviceVersion device.Version) []*Info // GetDevices returns the set of devices in the cache GetDevices() []*Info // Watch allows tracking updates of the cache Watch(ch chan<- stream.Event, replay bool) (stream.Context, error) }
Cache is a device type/version cache
func NewCache ¶
func NewCache(networkChangeStore networkchangestore.Store, deviceSnapshotStore devicesnapshotstore.Store) (Cache, error)
NewCache returns a new cache based on the NetworkChange store
Click to show internal directories.
Click to hide internal directories.