Documentation
¶
Index ¶
- func RegisterCreator(kind config.DeviceKind, creator Creator)
- type Config
- type Creator
- type Device
- type DevicePool
- type DeviceStruct
- func (c *DeviceStruct) Config() Config
- func (c *DeviceStruct) GetClosedChan() chan struct{}
- func (c *DeviceStruct) GetLastUpdated() time.Time
- func (c *DeviceStruct) GetModel() string
- func (c *DeviceStruct) GetRegisters() dataflow.Registers
- func (c *DeviceStruct) GetShutdownChan() chan struct{}
- func (c *DeviceStruct) SetLastUpdatedNow()
- func (c *DeviceStruct) SetModel(model string)
- func (c *DeviceStruct) SetRegisters(registers dataflow.Registers)
- func (c *DeviceStruct) Shutdown()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCreator ¶
func RegisterCreator(kind config.DeviceKind, creator Creator)
Types ¶
type Creator ¶
type Creator func(deviceStruct DeviceStruct, output chan dataflow.Value) (device Device, err error)
type Device ¶
type DevicePool ¶
func RunPool ¶
func RunPool() (pool *DevicePool)
func (*DevicePool) AddDevice ¶
func (p *DevicePool) AddDevice(device Device)
func (*DevicePool) GetDevice ¶
func (p *DevicePool) GetDevice(deviceName string) Device
func (*DevicePool) GetDevices ¶ added in v1.3.0
func (p *DevicePool) GetDevices() map[string]Device
func (*DevicePool) RemoveDevice ¶
func (p *DevicePool) RemoveDevice(device Device)
func (*DevicePool) Shutdown ¶
func (p *DevicePool) Shutdown()
type DeviceStruct ¶
type DeviceStruct struct {
// contains filtered or unexported fields
}
func (*DeviceStruct) Config ¶
func (c *DeviceStruct) Config() Config
func (*DeviceStruct) GetClosedChan ¶
func (c *DeviceStruct) GetClosedChan() chan struct{}
func (*DeviceStruct) GetLastUpdated ¶ added in v1.3.0
func (c *DeviceStruct) GetLastUpdated() time.Time
func (*DeviceStruct) GetModel ¶ added in v1.3.0
func (c *DeviceStruct) GetModel() string
func (*DeviceStruct) GetRegisters ¶ added in v1.3.0
func (c *DeviceStruct) GetRegisters() dataflow.Registers
func (*DeviceStruct) GetShutdownChan ¶
func (c *DeviceStruct) GetShutdownChan() chan struct{}
func (*DeviceStruct) SetLastUpdatedNow ¶ added in v1.3.0
func (c *DeviceStruct) SetLastUpdatedNow()
func (*DeviceStruct) SetModel ¶ added in v1.3.0
func (c *DeviceStruct) SetModel(model string)
func (*DeviceStruct) SetRegisters ¶
func (c *DeviceStruct) SetRegisters(registers dataflow.Registers)
func (*DeviceStruct) Shutdown ¶
func (c *DeviceStruct) Shutdown()
Click to show internal directories.
Click to hide internal directories.