Documentation ¶
Index ¶
- Constants
- Variables
- func WazeroModuleConfig(moduleConfig wazero.ModuleConfig) wazeroConfigOption
- func WazeroRuntime(newRuntime WazeroNewRuntime) wazeroConfigOption
- type Api
- type CommonMsg
- func (x *CommonMsg) GetFromUin() int64
- func (x *CommonMsg) GetMessage() string
- func (x *CommonMsg) GetMessageId() int32
- func (x *CommonMsg) GetMessageType() int32
- func (x *CommonMsg) GetRawMessage() []byte
- func (x *CommonMsg) GetSelfId() int64
- func (x *CommonMsg) GetSenderUin() int64
- func (x *CommonMsg) GetTime() int64
- func (m *CommonMsg) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *CommonMsg) MarshalToVT(dAtA []byte) (int, error)
- func (m *CommonMsg) MarshalVT() (dAtA []byte, err error)
- func (x *CommonMsg) ProtoReflect() protoreflect.Message
- func (m *CommonMsg) SizeVT() (n int)
- func (m *CommonMsg) UnmarshalVT(dAtA []byte) error
- type CronEventReq
- func (x *CronEventReq) GetId() string
- func (m *CronEventReq) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *CronEventReq) MarshalToVT(dAtA []byte) (int, error)
- func (m *CronEventReq) MarshalVT() (dAtA []byte, err error)
- func (x *CronEventReq) ProtoReflect() protoreflect.Message
- func (m *CronEventReq) SizeVT() (n int)
- func (m *CronEventReq) UnmarshalVT(dAtA []byte) error
- type CronJob
- func (x *CronJob) GetId() string
- func (x *CronJob) GetSpec() string
- func (m *CronJob) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *CronJob) MarshalToVT(dAtA []byte) (int, error)
- func (m *CronJob) MarshalVT() (dAtA []byte, err error)
- func (x *CronJob) ProtoReflect() protoreflect.Message
- func (m *CronJob) SizeVT() (n int)
- func (m *CronJob) UnmarshalVT(dAtA []byte) error
- type Event
- type EventPlugin
- type File
- func (x *File) GetFileId() int64
- func (x *File) GetFileMd5() string
- func (x *File) GetFileSize() int32
- func (x *File) GetFileToken() string
- func (m *File) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *File) MarshalToVT(dAtA []byte) (int, error)
- func (m *File) MarshalVT() (dAtA []byte, err error)
- func (x *File) ProtoReflect() protoreflect.Message
- func (m *File) SizeVT() (n int)
- func (m *File) UnmarshalVT(dAtA []byte) error
- type Files
- func (x *Files) GetFile() []*File
- func (m *Files) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Files) MarshalToVT(dAtA []byte) (int, error)
- func (m *Files) MarshalVT() (dAtA []byte, err error)
- func (x *Files) ProtoReflect() protoreflect.Message
- func (m *Files) SizeVT() (n int)
- func (m *Files) UnmarshalVT(dAtA []byte) error
- type HttpMethod
- type HttpReq
- func (x *HttpReq) GetContent() []byte
- func (x *HttpReq) GetHeader() map[string]string
- func (x *HttpReq) GetMethod() HttpMethod
- func (x *HttpReq) GetUrl() string
- func (m *HttpReq) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *HttpReq) MarshalToVT(dAtA []byte) (int, error)
- func (m *HttpReq) MarshalVT() (dAtA []byte, err error)
- func (x *HttpReq) ProtoReflect() protoreflect.Message
- func (m *HttpReq) SizeVT() (n int)
- func (m *HttpReq) UnmarshalVT(dAtA []byte) error
- type HttpRes
- func (x *HttpRes) GetContent() []byte
- func (x *HttpRes) GetHeader() string
- func (x *HttpRes) GetStatusCode() int32
- func (m *HttpRes) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *HttpRes) MarshalToVT(dAtA []byte) (int, error)
- func (m *HttpRes) MarshalVT() (dAtA []byte, err error)
- func (x *HttpRes) ProtoReflect() protoreflect.Message
- func (m *HttpRes) SizeVT() (n int)
- func (m *HttpRes) UnmarshalVT(dAtA []byte) error
- type InitReply
- func (x *InitReply) GetMessage() string
- func (x *InitReply) GetOk() bool
- func (m *InitReply) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *InitReply) MarshalToVT(dAtA []byte) (int, error)
- func (m *InitReply) MarshalVT() (dAtA []byte, err error)
- func (x *InitReply) ProtoReflect() protoreflect.Message
- func (m *InitReply) SizeVT() (n int)
- func (m *InitReply) UnmarshalVT(dAtA []byte) error
- type JsonMsg
- func (x *JsonMsg) GetJson() string
- func (m *JsonMsg) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *JsonMsg) MarshalToVT(dAtA []byte) (int, error)
- func (m *JsonMsg) MarshalVT() (dAtA []byte, err error)
- func (x *JsonMsg) ProtoReflect() protoreflect.Message
- func (m *JsonMsg) SizeVT() (n int)
- func (m *JsonMsg) UnmarshalVT(dAtA []byte) error
- type LogReq
- func (x *LogReq) GetLogType() LogType
- func (x *LogReq) GetMsg() string
- func (m *LogReq) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *LogReq) MarshalToVT(dAtA []byte) (int, error)
- func (m *LogReq) MarshalVT() (dAtA []byte, err error)
- func (x *LogReq) ProtoReflect() protoreflect.Message
- func (m *LogReq) SizeVT() (n int)
- func (m *LogReq) UnmarshalVT(dAtA []byte) error
- type LogType
- type MsgReq
- func (x *MsgReq) GetAtUin() []int64
- func (x *MsgReq) GetBotUin() int64
- func (x *MsgReq) GetGroupCode() int64
- func (x *MsgReq) GetJsonMsg() *JsonMsg
- func (m *MsgReq) GetMsg() isMsgReq_Msg
- func (x *MsgReq) GetPicMsg() *Files
- func (x *MsgReq) GetTextMsg() *TextMsg
- func (x *MsgReq) GetToUin() int64
- func (x *MsgReq) GetXmlMsg() *XmlMsg
- func (m *MsgReq) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *MsgReq) MarshalToVT(dAtA []byte) (int, error)
- func (m *MsgReq) MarshalVT() (dAtA []byte, err error)
- func (x *MsgReq) ProtoReflect() protoreflect.Message
- func (m *MsgReq) SizeVT() (n int)
- func (m *MsgReq) UnmarshalVT(dAtA []byte) error
- type MsgReq_JsonMsg
- type MsgReq_PicMsg
- type MsgReq_TextMsg
- type MsgReq_XmlMsg
- type RemoteCallReply
- func (x *RemoteCallReply) GetData() []byte
- func (m *RemoteCallReply) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *RemoteCallReply) MarshalToVT(dAtA []byte) (int, error)
- func (m *RemoteCallReply) MarshalVT() (dAtA []byte, err error)
- func (x *RemoteCallReply) ProtoReflect() protoreflect.Message
- func (m *RemoteCallReply) SizeVT() (n int)
- func (m *RemoteCallReply) UnmarshalVT(dAtA []byte) error
- type RemoteCallReq
- func (x *RemoteCallReq) GetArgs() []byte
- func (x *RemoteCallReq) GetCallPath() string
- func (x *RemoteCallReq) GetDstPluginName() string
- func (x *RemoteCallReq) GetSrcPluginName() string
- func (m *RemoteCallReq) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *RemoteCallReq) MarshalToVT(dAtA []byte) (int, error)
- func (m *RemoteCallReq) MarshalVT() (dAtA []byte, err error)
- func (x *RemoteCallReq) ProtoReflect() protoreflect.Message
- func (m *RemoteCallReq) SizeVT() (n int)
- func (m *RemoteCallReq) UnmarshalVT(dAtA []byte) error
- type SendReply
- func (x *SendReply) GetErrMsg() string
- func (x *SendReply) GetRet() int32
- func (m *SendReply) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *SendReply) MarshalToVT(dAtA []byte) (int, error)
- func (m *SendReply) MarshalVT() (dAtA []byte, err error)
- func (x *SendReply) ProtoReflect() protoreflect.Message
- func (m *SendReply) SizeVT() (n int)
- func (m *SendReply) UnmarshalVT(dAtA []byte) error
- type TextMsg
- func (x *TextMsg) GetText() string
- func (m *TextMsg) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *TextMsg) MarshalToVT(dAtA []byte) (int, error)
- func (m *TextMsg) MarshalVT() (dAtA []byte, err error)
- func (x *TextMsg) ProtoReflect() protoreflect.Message
- func (m *TextMsg) SizeVT() (n int)
- func (m *TextMsg) UnmarshalVT(dAtA []byte) error
- type UploadId
- type UploadReply
- func (x *UploadReply) GetErrMsg() string
- func (x *UploadReply) GetFile() *File
- func (x *UploadReply) GetRet() int32
- func (m *UploadReply) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *UploadReply) MarshalToVT(dAtA []byte) (int, error)
- func (m *UploadReply) MarshalVT() (dAtA []byte, err error)
- func (x *UploadReply) ProtoReflect() protoreflect.Message
- func (m *UploadReply) SizeVT() (n int)
- func (m *UploadReply) UnmarshalVT(dAtA []byte) error
- type UploadReq
- func (x *UploadReq) GetBase64Buf() string
- func (x *UploadReq) GetBotUin() int64
- func (m *UploadReq) GetFile() isUploadReq_File
- func (x *UploadReq) GetPath() string
- func (x *UploadReq) GetUploadId() UploadId
- func (x *UploadReq) GetUrl() string
- func (m *UploadReq) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *UploadReq) MarshalToVT(dAtA []byte) (int, error)
- func (m *UploadReq) MarshalVT() (dAtA []byte, err error)
- func (x *UploadReq) ProtoReflect() protoreflect.Message
- func (m *UploadReq) SizeVT() (n int)
- func (m *UploadReq) UnmarshalVT(dAtA []byte) error
- type UploadReq_Base64Buf
- type UploadReq_Path
- type UploadReq_Url
- type WazeroConfig
- type WazeroNewRuntime
- type XmlMsg
- func (x *XmlMsg) GetXml() string
- func (m *XmlMsg) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *XmlMsg) MarshalToVT(dAtA []byte) (int, error)
- func (m *XmlMsg) MarshalVT() (dAtA []byte, err error)
- func (x *XmlMsg) ProtoReflect() protoreflect.Message
- func (m *XmlMsg) SizeVT() (n int)
- func (m *XmlMsg) UnmarshalVT(dAtA []byte) error
Constants ¶
View Source
const EventPluginAPIVersion = 1
Variables ¶
View Source
var ( LogType_name = map[int32]string{ 0: "Debug", 1: "Info", 2: "Warn", 3: "Error", } LogType_value = map[string]int32{ "Debug": 0, "Info": 1, "Warn": 2, "Error": 3, } )
Enum value maps for LogType.
View Source
var ( HttpMethod_name = map[int32]string{ 0: "GET", 1: "POST", 2: "PUT", 3: "DELETE", } HttpMethod_value = map[string]int32{ "GET": 0, "POST": 1, "PUT": 2, "DELETE": 3, } )
Enum value maps for HttpMethod.
View Source
var ( UploadId_name = map[int32]string{ 0: "Group", 1: "Friend", } UploadId_value = map[string]int32{ "Group": 0, "Friend": 1, } )
Enum value maps for UploadId.
Functions ¶
func WazeroModuleConfig ¶
func WazeroModuleConfig(moduleConfig wazero.ModuleConfig) wazeroConfigOption
func WazeroRuntime ¶
func WazeroRuntime(newRuntime WazeroNewRuntime) wazeroConfigOption
Types ¶
type Api ¶
type Api interface { Log(context.Context, *LogReq) (*emptypb.Empty, error) Http(context.Context, *HttpReq) (*HttpRes, error) SendGroupMsg(context.Context, *MsgReq) (*SendReply, error) SendFriendMsg(context.Context, *MsgReq) (*SendReply, error) SendPrivateMsg(context.Context, *MsgReq) (*SendReply, error) Upload(context.Context, *UploadReq) (*UploadReply, error) RegisterCronJob(context.Context, *CronJob) (*emptypb.Empty, error) RemoveCronJob(context.Context, *CronJob) (*emptypb.Empty, error) // 调用其他插件功能 RemoteCall(context.Context, *RemoteCallReq) (*RemoteCallReply, error) }
go:plugin type=host
type CommonMsg ¶
type CommonMsg struct { Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"` // 消息发送的时间戳 SelfId int64 `protobuf:"varint,2,opt,name=selfId,proto3" json:"selfId,omitempty"` // 机器人QQ号 FromUin int64 `protobuf:"varint,3,opt,name=fromUin,proto3" json:"fromUin,omitempty"` // 消息来源 ID SenderUin int64 `protobuf:"varint,4,opt,name=senderUin,proto3" json:"senderUin,omitempty"` // 消息来源 ID Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` // 消息内容 RawMessage []byte `protobuf:"bytes,6,opt,name=rawMessage,proto3" json:"rawMessage,omitempty"` // 原始消息 MessageId int32 `protobuf:"varint,7,opt,name=messageId,proto3" json:"messageId,omitempty"` // 消息ID MessageType int32 `protobuf:"varint,8,opt,name=messageType,proto3" json:"messageType,omitempty"` // 消息类型 // contains filtered or unexported fields }
func (*CommonMsg) GetFromUin ¶
func (*CommonMsg) GetMessage ¶
func (*CommonMsg) GetMessageId ¶
func (*CommonMsg) GetMessageType ¶
func (*CommonMsg) GetRawMessage ¶
func (*CommonMsg) GetSenderUin ¶
func (*CommonMsg) MarshalToSizedBufferVT ¶
func (*CommonMsg) ProtoReflect ¶
func (x *CommonMsg) ProtoReflect() protoreflect.Message
func (*CommonMsg) UnmarshalVT ¶
type CronEventReq ¶
type CronEventReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CronEventReq) GetId ¶
func (x *CronEventReq) GetId() string
func (*CronEventReq) MarshalToSizedBufferVT ¶
func (m *CronEventReq) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*CronEventReq) MarshalToVT ¶
func (m *CronEventReq) MarshalToVT(dAtA []byte) (int, error)
func (*CronEventReq) MarshalVT ¶
func (m *CronEventReq) MarshalVT() (dAtA []byte, err error)
func (*CronEventReq) ProtoReflect ¶
func (x *CronEventReq) ProtoReflect() protoreflect.Message
func (*CronEventReq) SizeVT ¶
func (m *CronEventReq) SizeVT() (n int)
func (*CronEventReq) UnmarshalVT ¶
func (m *CronEventReq) UnmarshalVT(dAtA []byte) error
type CronJob ¶
type CronJob struct { Spec string `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CronJob) MarshalToSizedBufferVT ¶
func (*CronJob) ProtoReflect ¶
func (x *CronJob) ProtoReflect() protoreflect.Message
func (*CronJob) UnmarshalVT ¶
type Event ¶
type Event interface { // 插件初始化 Init(context.Context, *emptypb.Empty) (*InitReply, error) // 群消息 OnGroupMsg(context.Context, *CommonMsg) (*emptypb.Empty, error) // 好友消息 OnFriendMsg(context.Context, *CommonMsg) (*emptypb.Empty, error) // 私聊消息 OnPrivateMsg(context.Context, *CommonMsg) (*emptypb.Empty, error) // 插件卸载 保存资料 最大等待 2s Unload(context.Context, *emptypb.Empty) (*emptypb.Empty, error) // 周期任务唤醒 OnCronEvent(context.Context, *CronEventReq) (*emptypb.Empty, error) // 其他插件调用本插件事件 OnRemoteCallEvent(context.Context, *RemoteCallReq) (*RemoteCallReply, error) }
go:plugin type=plugin version=1
type EventPlugin ¶
type EventPlugin struct {
// contains filtered or unexported fields
}
func NewEventPlugin ¶
func NewEventPlugin(ctx context.Context, opts ...wazeroConfigOption) (*EventPlugin, error)
func (*EventPlugin) LoadWithBytes ¶
type File ¶
type File struct { FileId int64 `protobuf:"varint,1,opt,name=fileId,proto3" json:"fileId,omitempty"` FileMd5 string `protobuf:"bytes,2,opt,name=fileMd5,proto3" json:"fileMd5,omitempty"` FileSize int32 `protobuf:"varint,3,opt,name=fileSize,proto3" json:"fileSize,omitempty"` FileToken string `protobuf:"bytes,4,opt,name=fileToken,proto3" json:"fileToken,omitempty"` // contains filtered or unexported fields }
func (*File) GetFileMd5 ¶
func (*File) GetFileSize ¶
func (*File) GetFileToken ¶
func (*File) MarshalToSizedBufferVT ¶
func (*File) ProtoReflect ¶
func (x *File) ProtoReflect() protoreflect.Message
func (*File) UnmarshalVT ¶
type Files ¶
type Files struct { File []*File `protobuf:"bytes,1,rep,name=file,proto3" json:"file,omitempty"` // contains filtered or unexported fields }
func (*Files) MarshalToSizedBufferVT ¶
func (*Files) ProtoReflect ¶
func (x *Files) ProtoReflect() protoreflect.Message
func (*Files) UnmarshalVT ¶
type HttpMethod ¶
type HttpMethod int32
const ( HttpMethod_GET HttpMethod = 0 HttpMethod_POST HttpMethod = 1 HttpMethod_PUT HttpMethod = 2 HttpMethod_DELETE HttpMethod = 3 )
func (HttpMethod) Enum ¶
func (x HttpMethod) Enum() *HttpMethod
type HttpReq ¶
type HttpReq struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` Method HttpMethod `protobuf:"varint,2,opt,name=method,proto3,enum=proto.HttpMethod" json:"method,omitempty"` Header map[string]string `` /* 153-byte string literal not displayed */ Content []byte `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*HttpReq) GetContent ¶
func (*HttpReq) GetMethod ¶
func (x *HttpReq) GetMethod() HttpMethod
func (*HttpReq) MarshalToSizedBufferVT ¶
func (*HttpReq) ProtoReflect ¶
func (x *HttpReq) ProtoReflect() protoreflect.Message
func (*HttpReq) UnmarshalVT ¶
type HttpRes ¶
type HttpRes struct { Header string `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` StatusCode int32 `protobuf:"varint,2,opt,name=statusCode,proto3" json:"statusCode,omitempty"` Content []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*HttpRes) GetContent ¶
func (*HttpRes) GetStatusCode ¶
func (*HttpRes) MarshalToSizedBufferVT ¶
func (*HttpRes) ProtoReflect ¶
func (x *HttpRes) ProtoReflect() protoreflect.Message
func (*HttpRes) UnmarshalVT ¶
type InitReply ¶
type InitReply struct { // 是否初始化成功? Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` // 初始化失败信息 Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*InitReply) GetMessage ¶
func (*InitReply) MarshalToSizedBufferVT ¶
func (*InitReply) ProtoReflect ¶
func (x *InitReply) ProtoReflect() protoreflect.Message
func (*InitReply) UnmarshalVT ¶
type JsonMsg ¶
type JsonMsg struct { Json string `protobuf:"bytes,1,opt,name=json,proto3" json:"json,omitempty"` // contains filtered or unexported fields }
func (*JsonMsg) MarshalToSizedBufferVT ¶
func (*JsonMsg) ProtoReflect ¶
func (x *JsonMsg) ProtoReflect() protoreflect.Message
func (*JsonMsg) UnmarshalVT ¶
type LogReq ¶
type LogReq struct { LogType LogType `protobuf:"varint,1,opt,name=logType,proto3,enum=proto.LogType" json:"logType,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*LogReq) GetLogType ¶
func (*LogReq) MarshalToSizedBufferVT ¶
func (*LogReq) ProtoReflect ¶
func (x *LogReq) ProtoReflect() protoreflect.Message
func (*LogReq) UnmarshalVT ¶
type MsgReq ¶
type MsgReq struct { ToUin int64 `protobuf:"varint,1,opt,name=toUin,proto3" json:"toUin,omitempty"` // Types that are assignable to Msg: // // *MsgReq_TextMsg // *MsgReq_PicMsg // *MsgReq_XmlMsg // *MsgReq_JsonMsg Msg isMsgReq_Msg `protobuf_oneof:"msg"` AtUin []int64 `protobuf:"varint,3,rep,packed,name=atUin,proto3" json:"atUin,omitempty"` BotUin int64 `protobuf:"varint,4,opt,name=botUin,proto3" json:"botUin,omitempty"` GroupCode *int64 `protobuf:"varint,9,opt,name=groupCode,proto3,oneof" json:"groupCode,omitempty"` // contains filtered or unexported fields }
func (*MsgReq) GetGroupCode ¶
func (*MsgReq) GetJsonMsg ¶
func (*MsgReq) GetTextMsg ¶
func (*MsgReq) MarshalToSizedBufferVT ¶
func (*MsgReq) ProtoReflect ¶
func (x *MsgReq) ProtoReflect() protoreflect.Message
func (*MsgReq) UnmarshalVT ¶
type MsgReq_JsonMsg ¶
type MsgReq_JsonMsg struct {
JsonMsg *JsonMsg `protobuf:"bytes,8,opt,name=jsonMsg,proto3,oneof"`
}
func (*MsgReq_JsonMsg) MarshalToSizedBufferVT ¶
func (m *MsgReq_JsonMsg) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*MsgReq_JsonMsg) MarshalToVT ¶
func (m *MsgReq_JsonMsg) MarshalToVT(dAtA []byte) (int, error)
func (*MsgReq_JsonMsg) SizeVT ¶
func (m *MsgReq_JsonMsg) SizeVT() (n int)
type MsgReq_PicMsg ¶
type MsgReq_PicMsg struct {
PicMsg *Files `protobuf:"bytes,6,opt,name=picMsg,proto3,oneof"`
}
func (*MsgReq_PicMsg) MarshalToSizedBufferVT ¶
func (m *MsgReq_PicMsg) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*MsgReq_PicMsg) MarshalToVT ¶
func (m *MsgReq_PicMsg) MarshalToVT(dAtA []byte) (int, error)
func (*MsgReq_PicMsg) SizeVT ¶
func (m *MsgReq_PicMsg) SizeVT() (n int)
type MsgReq_TextMsg ¶
type MsgReq_TextMsg struct {
TextMsg *TextMsg `protobuf:"bytes,5,opt,name=textMsg,proto3,oneof"`
}
func (*MsgReq_TextMsg) MarshalToSizedBufferVT ¶
func (m *MsgReq_TextMsg) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*MsgReq_TextMsg) MarshalToVT ¶
func (m *MsgReq_TextMsg) MarshalToVT(dAtA []byte) (int, error)
func (*MsgReq_TextMsg) SizeVT ¶
func (m *MsgReq_TextMsg) SizeVT() (n int)
type MsgReq_XmlMsg ¶
type MsgReq_XmlMsg struct {
XmlMsg *XmlMsg `protobuf:"bytes,7,opt,name=xmlMsg,proto3,oneof"`
}
func (*MsgReq_XmlMsg) MarshalToSizedBufferVT ¶
func (m *MsgReq_XmlMsg) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*MsgReq_XmlMsg) MarshalToVT ¶
func (m *MsgReq_XmlMsg) MarshalToVT(dAtA []byte) (int, error)
func (*MsgReq_XmlMsg) SizeVT ¶
func (m *MsgReq_XmlMsg) SizeVT() (n int)
type RemoteCallReply ¶
type RemoteCallReply struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*RemoteCallReply) GetData ¶
func (x *RemoteCallReply) GetData() []byte
func (*RemoteCallReply) MarshalToSizedBufferVT ¶
func (m *RemoteCallReply) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*RemoteCallReply) MarshalToVT ¶
func (m *RemoteCallReply) MarshalToVT(dAtA []byte) (int, error)
func (*RemoteCallReply) MarshalVT ¶
func (m *RemoteCallReply) MarshalVT() (dAtA []byte, err error)
func (*RemoteCallReply) ProtoReflect ¶
func (x *RemoteCallReply) ProtoReflect() protoreflect.Message
func (*RemoteCallReply) SizeVT ¶
func (m *RemoteCallReply) SizeVT() (n int)
func (*RemoteCallReply) UnmarshalVT ¶
func (m *RemoteCallReply) UnmarshalVT(dAtA []byte) error
type RemoteCallReq ¶
type RemoteCallReq struct { SrcPluginName string `protobuf:"bytes,1,opt,name=srcPluginName,proto3" json:"srcPluginName,omitempty"` DstPluginName string `protobuf:"bytes,2,opt,name=dstPluginName,proto3" json:"dstPluginName,omitempty"` CallPath string `protobuf:"bytes,3,opt,name=callPath,proto3" json:"callPath,omitempty"` Args []byte `protobuf:"bytes,4,opt,name=args,proto3" json:"args,omitempty"` // contains filtered or unexported fields }
func (*RemoteCallReq) GetArgs ¶
func (x *RemoteCallReq) GetArgs() []byte
func (*RemoteCallReq) GetCallPath ¶
func (x *RemoteCallReq) GetCallPath() string
func (*RemoteCallReq) GetDstPluginName ¶
func (x *RemoteCallReq) GetDstPluginName() string
func (*RemoteCallReq) GetSrcPluginName ¶
func (x *RemoteCallReq) GetSrcPluginName() string
func (*RemoteCallReq) MarshalToSizedBufferVT ¶
func (m *RemoteCallReq) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*RemoteCallReq) MarshalToVT ¶
func (m *RemoteCallReq) MarshalToVT(dAtA []byte) (int, error)
func (*RemoteCallReq) MarshalVT ¶
func (m *RemoteCallReq) MarshalVT() (dAtA []byte, err error)
func (*RemoteCallReq) ProtoReflect ¶
func (x *RemoteCallReq) ProtoReflect() protoreflect.Message
func (*RemoteCallReq) SizeVT ¶
func (m *RemoteCallReq) SizeVT() (n int)
func (*RemoteCallReq) UnmarshalVT ¶
func (m *RemoteCallReq) UnmarshalVT(dAtA []byte) error
type SendReply ¶
type SendReply struct { Ret int32 `protobuf:"varint,1,opt,name=Ret,proto3" json:"Ret,omitempty"` ErrMsg *string `protobuf:"bytes,2,opt,name=ErrMsg,proto3,oneof" json:"ErrMsg,omitempty"` // contains filtered or unexported fields }
func (*SendReply) MarshalToSizedBufferVT ¶
func (*SendReply) ProtoReflect ¶
func (x *SendReply) ProtoReflect() protoreflect.Message
func (*SendReply) UnmarshalVT ¶
type TextMsg ¶
type TextMsg struct { Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` // contains filtered or unexported fields }
func (*TextMsg) MarshalToSizedBufferVT ¶
func (*TextMsg) ProtoReflect ¶
func (x *TextMsg) ProtoReflect() protoreflect.Message
func (*TextMsg) UnmarshalVT ¶
type UploadReply ¶
type UploadReply struct { Ret int32 `protobuf:"varint,1,opt,name=Ret,proto3" json:"Ret,omitempty"` ErrMsg *string `protobuf:"bytes,2,opt,name=ErrMsg,proto3,oneof" json:"ErrMsg,omitempty"` File *File `protobuf:"bytes,3,opt,name=file,proto3,oneof" json:"file,omitempty"` // contains filtered or unexported fields }
func (*UploadReply) GetErrMsg ¶
func (x *UploadReply) GetErrMsg() string
func (*UploadReply) GetFile ¶
func (x *UploadReply) GetFile() *File
func (*UploadReply) GetRet ¶
func (x *UploadReply) GetRet() int32
func (*UploadReply) MarshalToSizedBufferVT ¶
func (m *UploadReply) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*UploadReply) MarshalToVT ¶
func (m *UploadReply) MarshalToVT(dAtA []byte) (int, error)
func (*UploadReply) MarshalVT ¶
func (m *UploadReply) MarshalVT() (dAtA []byte, err error)
func (*UploadReply) ProtoReflect ¶
func (x *UploadReply) ProtoReflect() protoreflect.Message
func (*UploadReply) SizeVT ¶
func (m *UploadReply) SizeVT() (n int)
func (*UploadReply) UnmarshalVT ¶
func (m *UploadReply) UnmarshalVT(dAtA []byte) error
type UploadReq ¶
type UploadReq struct { // Types that are assignable to File: // // *UploadReq_Path // *UploadReq_Url // *UploadReq_Base64Buf File isUploadReq_File `protobuf_oneof:"file"` BotUin int64 `protobuf:"varint,4,opt,name=botUin,proto3" json:"botUin,omitempty"` UploadId UploadId `protobuf:"varint,5,opt,name=uploadId,proto3,enum=proto.UploadId" json:"uploadId,omitempty"` // contains filtered or unexported fields }
func (*UploadReq) GetBase64Buf ¶
func (*UploadReq) GetUploadId ¶
func (*UploadReq) MarshalToSizedBufferVT ¶
func (*UploadReq) ProtoReflect ¶
func (x *UploadReq) ProtoReflect() protoreflect.Message
func (*UploadReq) UnmarshalVT ¶
type UploadReq_Base64Buf ¶
type UploadReq_Base64Buf struct {
Base64Buf string `protobuf:"bytes,3,opt,name=base64buf,proto3,oneof"`
}
func (*UploadReq_Base64Buf) MarshalToSizedBufferVT ¶
func (m *UploadReq_Base64Buf) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*UploadReq_Base64Buf) MarshalToVT ¶
func (m *UploadReq_Base64Buf) MarshalToVT(dAtA []byte) (int, error)
func (*UploadReq_Base64Buf) SizeVT ¶
func (m *UploadReq_Base64Buf) SizeVT() (n int)
type UploadReq_Path ¶
type UploadReq_Path struct {
Path string `protobuf:"bytes,1,opt,name=path,proto3,oneof"`
}
func (*UploadReq_Path) MarshalToSizedBufferVT ¶
func (m *UploadReq_Path) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*UploadReq_Path) MarshalToVT ¶
func (m *UploadReq_Path) MarshalToVT(dAtA []byte) (int, error)
func (*UploadReq_Path) SizeVT ¶
func (m *UploadReq_Path) SizeVT() (n int)
type UploadReq_Url ¶
type UploadReq_Url struct {
Url string `protobuf:"bytes,2,opt,name=url,proto3,oneof"`
}
func (*UploadReq_Url) MarshalToSizedBufferVT ¶
func (m *UploadReq_Url) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*UploadReq_Url) MarshalToVT ¶
func (m *UploadReq_Url) MarshalToVT(dAtA []byte) (int, error)
func (*UploadReq_Url) SizeVT ¶
func (m *UploadReq_Url) SizeVT() (n int)
type WazeroConfig ¶
type WazeroConfig struct {
// contains filtered or unexported fields
}
type WazeroNewRuntime ¶
func DefaultWazeroRuntime ¶
func DefaultWazeroRuntime() WazeroNewRuntime
type XmlMsg ¶
type XmlMsg struct { Xml string `protobuf:"bytes,1,opt,name=xml,proto3" json:"xml,omitempty"` // contains filtered or unexported fields }
func (*XmlMsg) MarshalToSizedBufferVT ¶
func (*XmlMsg) ProtoReflect ¶
func (x *XmlMsg) ProtoReflect() protoreflect.Message
func (*XmlMsg) UnmarshalVT ¶
Click to show internal directories.
Click to hide internal directories.