Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DataStream ¶
DataStream is a stream of data from the Span service. The data stream uses a websocket under the hood.
func NewCollectionDataStream ¶
func NewCollectionDataStream(ctx context.Context, config *spanapi.Configuration, collectionID string) (DataStream, error)
NewCollectionDataStream creates a live data stream for devices in a collection. The context must contain the appropriate credentials.
func NewDeviceDataStream ¶
func NewDeviceDataStream(ctx context.Context, config *spanapi.Configuration, collectionID, deviceID string) (DataStream, error)
NewDeviceDataStream creates a live data stream for a single device. The context must contain the appropriate credentials.
Click to show internal directories.
Click to hide internal directories.