Documentation ¶
Index ¶
Constants ¶
View Source
const ( DOauth = "data:subscribe_oauth" DHello = "control:hello" DUpdate = "data:update" DError = "data:error" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StreamingError ¶
type StreamingError struct {
Msg Message
}
func (StreamingError) Error ¶
func (e StreamingError) Error() string
type Subscriber ¶
type Subscriber struct { Data chan interface{} Error chan error Close chan struct{} }
Subscriber 订阅者包含一个接收消息的通道
func StartStream ¶
func StartStream(token string, vehicleId int64) *Subscriber
Click to show internal directories.
Click to hide internal directories.