Documentation ¶
Index ¶
- type Config
- type Device
- func (d *Device) Capabilities() []selector.Capability
- func (d *Device) Close() error
- func (d *Device) Location() string
- func (d *Device) NewReadChannel(name string) (device.ReadChannel, error)
- func (d *Device) NewWriteChannel(name string) (device.WriteChannel, error)
- func (d *Device) Scan() ([]string, []device.Item, error)
- func (d *Device) SetBackend(_ device.Device)
- func (d *Device) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ID string `validate:"required"` Parameters *viper.Viper `validate:"required"` Hub *hub.Hub `validate:"required"` }
Config defines the running paramers of the Device
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
Device is a virtual proxy composed out of several device.Device processing layers
func (*Device) Capabilities ¶
func (d *Device) Capabilities() []selector.Capability
Capabilities returns the capabilities of the device
func (*Device) NewReadChannel ¶
func (d *Device) NewReadChannel(name string) (device.ReadChannel, error)
NewReadChannel opens an cross-layer channel for reading data from an isolated collection on the backend
func (*Device) NewWriteChannel ¶
func (d *Device) NewWriteChannel(name string) (device.WriteChannel, error)
NewWriteChannel opens a cross-layer channel for writing data into an isolated collection on the backend. Collections are immutable
func (*Device) Scan ¶
Scan returns a list of items and metadata that exist on the backend associated with the virtual device
func (*Device) SetBackend ¶
SetBackend defines the backend for the current device layer
Click to show internal directories.
Click to hide internal directories.