Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APICaller ¶
type APICaller interface {
CallAPI(req *APIRequest) (resp *APIResponse, err error)
}
APICaller defines basic abilities of supported api caller.
type APIRequest ¶
type APIRequest struct { Action string `json:"action"` Echo string `json:"echo"` Params MSG `json:"params"` }
APIRequest is used to communicate with onebot client. https://github.com/botuniverse/onebot-11/blob/master/communication/ws.md
type APIResponse ¶
type APIResponse struct { Data gjson.Result `json:"data"` Echo string `json:"echo"` Msg string `json:"msg"` RetCode int64 `json:"retcode"` Status string `json:"status"` Wording string `json:"wording"` }
APIResponse is the response of calling API https://github.com/botuniverse/onebot-11/blob/master/communication/ws.md
type EventHandler ¶
EventHandler basic abilities of event handler.
Click to show internal directories.
Click to hide internal directories.