Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store interface {
// Get gets a device by ID
Get(device.ID) (*device.Device, error)
// Update updates a given device
Update(*device.Device) (*device.Device, error)
// List lists the devices in the store
List(chan<- *device.Device) error
// Watch watches the device store for changes
Watch(chan<- *device.ListResponse) error
}
Store is a device store
func NewStore ¶
func NewStore(client topo.TopoClient) (Store, error)
NewStore returns a new device store for the given client
func NewTopoStore ¶
func NewTopoStore(topoEndpoint string, opts ...grpc.DialOption) (Store, error)
NewTopoStore returns a new topo-based device store
Click to show internal directories.
Click to hide internal directories.