Documentation ¶
Index ¶
- func ObjectsFromList(list interface{}) (*concurrent.List, error)
- func ReadConfig(fileName string) (res json.Map, err error)
- func RegisterChannelType(typeName string, constructor ChannelConstructor)
- func RegisterObjectType(typeName string, constructor ObjectConstructor)
- func RemoveChannelType(typeName string)
- func RemoveObjectType(typeName string)
- type Channel
- type ChannelConstructor
- type ChannelTelegram
- type HttpGet
- type Monitoring
- type Object
- type ObjectConstructor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ObjectsFromList ¶
func ObjectsFromList(list interface{}) (*concurrent.List, error)
func RegisterChannelType ¶
func RegisterChannelType(typeName string, constructor ChannelConstructor)
func RegisterObjectType ¶
func RegisterObjectType(typeName string, constructor ObjectConstructor)
func RemoveChannelType ¶
func RemoveChannelType(typeName string)
func RemoveObjectType ¶
func RemoveObjectType(typeName string)
Types ¶
type ChannelTelegram ¶
type ChannelTelegram struct {
// contains filtered or unexported fields
}
func (*ChannelTelegram) Log ¶
func (s *ChannelTelegram) Log(title, message string)
type Monitoring ¶
type Monitoring struct {
// contains filtered or unexported fields
}
func FromConfig ¶
func FromConfig(ctx context.Context, fileName string) (res *Monitoring, err error)
func (*Monitoring) Cancel ¶
func (s *Monitoring) Cancel()
func (*Monitoring) ObjectAdd ¶
func (s *Monitoring) ObjectAdd(obj Object)
func (*Monitoring) ObjectRemove ¶
func (s *Monitoring) ObjectRemove(obj Object)
Click to show internal directories.
Click to hide internal directories.