Documentation
¶
Overview ¶
Package driver provides the default driver of zerobot
Index ¶
- type FuncallClient
- func (f *FuncallClient) CallApi(req zero.APIRequest) (zero.APIResponse, error)
- func (f *FuncallClient) Connect()
- func (f *FuncallClient) GetResp() func([]byte)
- func (f *FuncallClient) Listen(handler func([]byte, zero.APICaller))
- func (f *FuncallClient) SelfID() int64
- func (f *FuncallClient) SetReq(req func([]byte))
- type WSClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FuncallClient ¶
type FuncallClient struct {
// contains filtered or unexported fields
}
FuncallClient ...
func (*FuncallClient) CallApi ¶
func (f *FuncallClient) CallApi(req zero.APIRequest) (zero.APIResponse, error)
CallApi 发送请求
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请求
Click to show internal directories.
Click to hide internal directories.