Versions in this module Expand all Collapse all v1 v1.0.0 Jun 6, 2025 v0 v0.0.7 Jun 6, 2025 v0.0.6 Sep 2, 2024 v0.0.5 Sep 2, 2024 v0.0.4 Jun 4, 2023 v0.0.3 Jun 2, 2023 v0.0.2 Jun 2, 2023 v0.0.1 Jun 2, 2023 Changes in this version + var Stop = errors.New("stop sentinel") + func SetDebug(l *log.Logger) + type Callback func(context.Context, Message) error + type Client struct + BaseUrl string + DeviceID string + Dialer Dialer + HttpClient *http.Client + Origin string + TokenSrc oauth2.TokenSource + func (c *Client) Stream(ctx context.Context, monitorID int, callback Callback) error + type Conn interface + Close func(websocket.StatusCode, string) error + Read func(ctx context.Context) (websocket.MessageType, []byte, error) + type DataChange struct + DeviceDataChecksum string + MonitorOverviewChecksum string + PartnerChecksum string + PendingEvents struct{ ... } + SettingsVersion int + UserVersion int + func (d DataChange) GetType() string + type Delta struct + Channel int + Frame int + StartFrame int + W float32 + type Device struct + Attrs interface{} + ID string + Icon string + Name string + Tags map[string]interface{} + W float32 + type DeviceState struct + DeviceID string + Mode string + State string + type DeviceStates struct + States []DeviceState + UpdateType string + func (d DeviceStates) GetType() string + type Dialer interface + Dial func(ctx context.Context, url string, opts *websocket.DialOptions) (Conn, *http.Response, error) + type Hello struct + Online bool + func (h Hello) GetType() string + type Message interface + GetType func() string + type MonitorInfo struct + Features string + func (m MonitorInfo) GetType() string + type NewTimelineEvent struct + ItemsAdded []TimelineEvent + ItemsRemoved []TimelineEvent + ItemsUpdated []TimelineEvent + UserID int + func (n NewTimelineEvent) GetType() string + type RealtimeUpdate struct + C int + Channels []float32 + DW int + DefaultCost float32 + Deltas []Delta + Devices []Device + Epoch int + Frame int + GridW float32 + Hz float32 + PowerFlow struct{ ... } + Stats struct{ ... } + Voltage []float32 + W float32 + func (r *RealtimeUpdate) GetType() string + type TimelineEvent struct + AllowSticky bool + Body string + BodyArgs []map[string]interface{} + BodyKey string + Destination string + DeviceID string + DeviceState string + DeviceTransitionFromState string + GUID string + Icon string + MonitorID int + ShowAction bool + Time *time.Time + Type string + UserDeviceType string