Documentation
¶
Index ¶
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) 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) GetShutdownChan ¶
func (c DeviceStruct) GetShutdownChan() chan struct{}
func (DeviceStruct) Registers ¶
func (c DeviceStruct) Registers() dataflow.Registers
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.