Documentation ¶
Overview ¶
Package driver 函数调用式驱动, 用于 gocqzbp
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterServer ¶
RegisterServer 传入注册 CQBot 函数 如 go-cq 的 servers.RegisterCustom(name string, proc func(*coolq.CQBot))
Types ¶
type Event ¶
type Event interface { // JSONBytes return bytes of json by lazy marshalling. JSONBytes() []byte // JSONBytes return raw event msg. RawMSG() MSG }
Event ...
type FCClient ¶
type FCClient struct {
// contains filtered or unexported fields
}
FCClient Funcall Client
func NewFuncallClient ¶
NewFuncallClient ...
func (*FCClient) CallApi ¶
func (f *FCClient) CallApi(req zero.APIRequest) (zero.APIResponse, error)
CallApi 发送请求
Click to show internal directories.
Click to hide internal directories.