Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WSClient ¶
type WSClient struct { Url string // ws连接地址 AccessToken string // contains filtered or unexported fields }
WSClient ...
func NewWebSocketClient ¶
NewWebSocketClient 默认Driver,使用正向WS通信
func (*WSClient) CallApi ¶
func (ws *WSClient) CallApi(req zero.APIRequest) (zero.APIResponse, error)
CallApi 发送ws请求
type WSSCaller ¶
type WSSCaller struct {
// contains filtered or unexported fields
}
WSSCaller ...
func (*WSSCaller) CallApi ¶
func (wssc *WSSCaller) CallApi(req zero.APIRequest) (zero.APIResponse, error)
CallApi 发送ws请求
type WSServer ¶
type WSServer struct { Url string // ws连接地址 AccessToken string json.Unmarshaler // contains filtered or unexported fields }
WSServer ...
func NewWebSocketServer ¶
NewWebSocketServer 使用反向WS通信
func (*WSServer) UnmarshalJSON ¶
UnmarshalJSON init WSServer with waitn=16
Click to show internal directories.
Click to hide internal directories.