Documentation
¶
Overview ¶
Package driver provides the default driver of zerobot
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WSClient ¶ added in v1.0.0
type WSClient struct { URL string // ws连接地址 AccessToken string // contains filtered or unexported fields }
WSClient ...
func NewWebSocketClient ¶ added in v1.0.0
NewWebSocketClient 默认Driver,使用正向WS通信
func (*WSClient) CallAPI ¶ added in v1.8.0
func (ws *WSClient) CallAPI(req zero.APIRequest) (zero.APIResponse, error)
CallAPI 发送ws请求
type WSSCaller ¶ added in v1.6.4
type WSSCaller struct {
// contains filtered or unexported fields
}
WSSCaller ...
func (*WSSCaller) CallAPI ¶ added in v1.8.0
func (wssc *WSSCaller) CallAPI(req zero.APIRequest) (zero.APIResponse, error)
CallAPI 发送ws请求
type WSServer ¶ added in v1.6.4
type WSServer struct { URL string // ws连接地址 AccessToken string json.Unmarshaler // contains filtered or unexported fields }
WSServer ...
func NewWebSocketServer ¶ added in v1.6.4
NewWebSocketServer 使用反向WS通信
func (*WSServer) UnmarshalJSON ¶ added in v1.7.1
UnmarshalJSON init WSServer with waitn=16
Click to show internal directories.
Click to hide internal directories.