Documentation ¶
Index ¶
- Constants
- func Do[T any](req *http.Request) (result T, code int, err error)
- type DeviceInfo
- type DeviceMetaData
- func (this *DeviceMetaData) CreateCanaryDevice(token string) (device DeviceInfo, err error)
- func (this *DeviceMetaData) CreateCanaryDeviceType(token string) (deviceType DeviceTypeInfo, err error)
- func (this *DeviceMetaData) EnsureDevice(token string) (device DeviceInfo, err error)
- func (this *DeviceMetaData) EnsureDeviceType(token string) (result DeviceTypeInfo, err error)
- func (this *DeviceMetaData) ListCanaryDeviceTypes(token string) (result []DeviceTypeInfo, err error)
- func (this *DeviceMetaData) ListCanaryDevices(token string) (devices []DeviceInfo, err error)
- func (this *DeviceMetaData) TestMetadata(token string, info DeviceInfo)
- type DeviceTypeInfo
- type PermDevice
Constants ¶
View Source
const AttributeUsedForCanaryDevice = "senergy/canary-device"
View Source
const AttributeUsedForCanaryDeviceType = "senergy/canary-device-type"
View Source
const CmdServiceLocalId = "cmd"
View Source
const SensorServiceLocalId = "sensor"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DeviceInfo ¶
type DeviceMetaData ¶
type DeviceMetaData struct {
// contains filtered or unexported fields
}
func NewDeviceMetaData ¶
func NewDeviceMetaData(devicerepo devicerepo.Interface, metrics *metrics.Metrics, config configuration.Config, guaranteeChangeAfter time.Duration) *DeviceMetaData
func (*DeviceMetaData) CreateCanaryDevice ¶
func (this *DeviceMetaData) CreateCanaryDevice(token string) (device DeviceInfo, err error)
func (*DeviceMetaData) CreateCanaryDeviceType ¶
func (this *DeviceMetaData) CreateCanaryDeviceType(token string) (deviceType DeviceTypeInfo, err error)
func (*DeviceMetaData) EnsureDevice ¶
func (this *DeviceMetaData) EnsureDevice(token string) (device DeviceInfo, err error)
func (*DeviceMetaData) EnsureDeviceType ¶
func (this *DeviceMetaData) EnsureDeviceType(token string) (result DeviceTypeInfo, err error)
func (*DeviceMetaData) ListCanaryDeviceTypes ¶
func (this *DeviceMetaData) ListCanaryDeviceTypes(token string) (result []DeviceTypeInfo, err error)
func (*DeviceMetaData) ListCanaryDevices ¶
func (this *DeviceMetaData) ListCanaryDevices(token string) (devices []DeviceInfo, err error)
func (*DeviceMetaData) TestMetadata ¶
func (this *DeviceMetaData) TestMetadata(token string, info DeviceInfo)
type DeviceTypeInfo ¶
type PermDevice ¶
Click to show internal directories.
Click to hide internal directories.