Documentation
¶
Index ¶
- Variables
- type Config
- type Device
- type DeviceType
- type Devices
- type DevicesResponse
- type Level
- func (l *Level) AddValueChangeListener(fn func(*Level)) int64
- func (l *Level) MarshalJSON() ([]byte, error)
- func (l *Level) RemoveValueChangeListener(id int64)
- func (l *Level) SetValue(val interface{})
- func (l *Level) String() string
- func (l *Level) ToBoolean() (bool, error)
- func (l *Level) ToFloat() (float64, error)
- func (l *Level) UnmarshalJSON(data []byte) error
- type Metrics
- type ProbeType
- type ZWay
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorCookieNotFound = errors.New("Cookie not found")
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct { sync.RWMutex DeviceType DeviceType `json:"deviceType"` Tags []string `json:"tags"` CreatorID int `json:"creatorId"` HasHistory bool `json:"hasHistory"` ID string `json:"id"` Location int `json:"location"` Metrics Metrics `json:"metrics"` PermanentlyHidden bool `json:"permanently_hidden"` ProbeType ProbeType `json:"probeType"` Visibility bool `json:"visibility"` UpdateTime float64 `json:"updateTime"` }
type DeviceType ¶
type DeviceType struct {
Name string
}
func (*DeviceType) MarshalJSON ¶
func (dt *DeviceType) MarshalJSON() ([]byte, error)
func (*DeviceType) UnmarshalJSON ¶
func (dt *DeviceType) UnmarshalJSON(data []byte) error
type Devices ¶
func (*Devices) AddNewDeviceListener ¶
func (*Devices) RemoveNewDeviceListener ¶
type DevicesResponse ¶
type Level ¶
func (*Level) AddValueChangeListener ¶
func (*Level) MarshalJSON ¶
func (*Level) RemoveValueChangeListener ¶
func (*Level) UnmarshalJSON ¶
type ProbeType ¶
type ProbeType struct {
Name string
}
func (*ProbeType) MarshalJSON ¶
func (*ProbeType) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.