Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallReponseToJson ¶
func CallReponseToJson(rep *CallReponse) ([]byte, error)
func CallRequestToJson ¶
func CallRequestToJson(req *CallRequest) ([]byte, error)
Types ¶
type CallReponse ¶
type CallReponse struct { Id string `json:"id"` // 消息ID Result interface{} `json:"result"` // 结果 }
func CallReponseFromJson ¶
func CallReponseFromJson(text []byte) (*CallReponse, error)
type CallRequest ¶
type CallRequest struct { Id string `json:"id"` // 消息ID Object string `json:"object"` // 被调用的对象 Func string `json:"func"` // 函数名 Args []interface{} `json:"args"` // 参数列表 }
func CallRequestFromJson ¶
func CallRequestFromJson(text []byte) (*CallRequest, error)
type RCProxy ¶
func NewRCProxy ¶
func NewRCProxy() *RCProxy
func (*RCProxy) EnumShellr ¶
func (*RCProxy) RegisterShellr ¶
RegisterShellr 用于注册一个 Shellr 对象
func (*RCProxy) UnregisterShellr ¶
UnregisterShellr 用于注册一个 Shellr 对象;如果注册成功,将返回注册对象的唯一编号;如果注册失败,返回 -1;
Click to show internal directories.
Click to hide internal directories.