Documentation
¶
Index ¶
- func ComFactory(ctx context.Context, config configuration.Config, ...) (producer interfaces.Producer, err error)
- func GetCacheConfig() cache.Config
- func IotFactory(ctx context.Context, config configuration.Config) (interfaces.Iot, error)
- func MarshallerFactory(ctx context.Context, config configuration.Config, iot interfaces.Iot) (interfaces.Marshaller, error)
- func TimescaleFactory(ctx context.Context, config configuration.Config) (interfaces.Timescale, error)
- type IdWrapper
- type Iot
- func (this *Iot) GetAspectNode(id string) (result model.AspectNode, err error)
- func (this *Iot) GetCharacteristic(id string) (result model.Characteristic, err error)
- func (this *Iot) GetConcept(id string) (result model.Concept, err error)
- func (this *Iot) GetConceptIds() (ids []string, err error)
- func (this *Iot) GetDevice(token string, id string) (result model.Device, err error)
- func (this *Iot) GetDeviceGroup(token string, id string) (result model.DeviceGroup, err error)
- func (this *Iot) GetDeviceType(token string, id string) (result model.DeviceType, err error)
- func (this *Iot) GetFunction(id string) (result model.Function, err error)
- func (this *Iot) GetJson(token string, endpoint string, result interface{}) (err error)
- func (this *Iot) GetProtocol(token string, id string) (result model.Protocol, err error)
- func (this *Iot) GetService(token string, device model.Device, id string) (result model.Service, err error)
- func (this *Iot) ListFunctions() (functionInfos []model.Function, err error)
- type LastMessageResponse
- type Producer
- type Timescale
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComFactory ¶
func ComFactory(ctx context.Context, config configuration.Config, responseListener func(msg messages.ProtocolMsg) error, errorListener func(msg messages.ProtocolMsg) error) (producer interfaces.Producer, err error)
func GetCacheConfig ¶ added in v1.0.3
func IotFactory ¶
func IotFactory(ctx context.Context, config configuration.Config) (interfaces.Iot, error)
func MarshallerFactory ¶
func MarshallerFactory(ctx context.Context, config configuration.Config, iot interfaces.Iot) (interfaces.Marshaller, error)
func TimescaleFactory ¶
func TimescaleFactory(ctx context.Context, config configuration.Config) (interfaces.Timescale, error)
Types ¶
type Iot ¶
type Iot struct {
// contains filtered or unexported fields
}
func NewIotWithDeviceRepoClient ¶ added in v1.0.24
func (*Iot) GetAspectNode ¶
func (this *Iot) GetAspectNode(id string) (result model.AspectNode, err error)
func (*Iot) GetCharacteristic ¶
func (this *Iot) GetCharacteristic(id string) (result model.Characteristic, err error)
func (*Iot) GetConceptIds ¶
func (*Iot) GetDeviceGroup ¶
func (*Iot) GetDeviceType ¶
func (*Iot) GetFunction ¶
func (*Iot) GetProtocol ¶
func (*Iot) GetService ¶
type LastMessageResponse ¶ added in v1.0.30
type Producer ¶
type Producer struct {
// contains filtered or unexported fields
}
func (*Producer) SendCommand ¶
func (this *Producer) SendCommand(msg messages.ProtocolMsg) (err error)
Click to show internal directories.
Click to hide internal directories.