Documentation ¶
Index ¶
- Constants
- type Config
- type Device
- type State
- func (c *State) Config() Config
- func (c *State) GetAvailableByState(state []dataflow.Value) (avail, ok bool)
- func (c *State) Name() string
- func (c *State) RegisterDb() *dataflow.RegisterDb
- func (c *State) SetAvailable(v bool)
- func (c *State) StateStorage() *dataflow.ValueStorage
- func (c *State) SubscribeAvailableSendInitial(ctx context.Context) <-chan bool
- func (c *State) UpdateAvailable(oldAvail bool, newValue dataflow.Value) (avail, updated bool)
Constants ¶
View Source
const AvailabilityOfflineValue = "offline"
View Source
const AvailabilityOnlineValue = "online"
View Source
const AvailabilityRegisterName = "Available"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config interface { Name() string Filter() dataflow.RegisterFilterConf LogDebug() bool LogComDebug() bool }
type State ¶
type State struct {
// contains filtered or unexported fields
}
func (*State) GetAvailableByState ¶
func (*State) RegisterDb ¶
func (c *State) RegisterDb() *dataflow.RegisterDb
func (*State) SetAvailable ¶
func (*State) StateStorage ¶
func (c *State) StateStorage() *dataflow.ValueStorage
func (*State) SubscribeAvailableSendInitial ¶
Click to show internal directories.
Click to hide internal directories.