proto

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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.

View Source
var (
	ErrInvalidLength        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflow          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group")
)

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 (x *CommonMsg) GetFromUin() int64

func (*CommonMsg) GetMessage

func (x *CommonMsg) GetMessage() string

func (*CommonMsg) GetMessageId

func (x *CommonMsg) GetMessageId() int32

func (*CommonMsg) GetMessageType

func (x *CommonMsg) GetMessageType() int32

func (*CommonMsg) GetRawMessage

func (x *CommonMsg) GetRawMessage() []byte

func (*CommonMsg) GetSelfId

func (x *CommonMsg) GetSelfId() int64

func (*CommonMsg) GetSenderUin

func (x *CommonMsg) GetSenderUin() int64

func (*CommonMsg) GetTime

func (x *CommonMsg) GetTime() int64

func (*CommonMsg) MarshalToSizedBufferVT

func (m *CommonMsg) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*CommonMsg) MarshalToVT

func (m *CommonMsg) MarshalToVT(dAtA []byte) (int, error)

func (*CommonMsg) MarshalVT

func (m *CommonMsg) MarshalVT() (dAtA []byte, err error)

func (*CommonMsg) ProtoReflect

func (x *CommonMsg) ProtoReflect() protoreflect.Message

func (*CommonMsg) SizeVT

func (m *CommonMsg) SizeVT() (n int)

func (*CommonMsg) UnmarshalVT

func (m *CommonMsg) UnmarshalVT(dAtA []byte) error

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) GetId

func (x *CronJob) GetId() string

func (*CronJob) GetSpec

func (x *CronJob) GetSpec() string

func (*CronJob) MarshalToSizedBufferVT

func (m *CronJob) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*CronJob) MarshalToVT

func (m *CronJob) MarshalToVT(dAtA []byte) (int, error)

func (*CronJob) MarshalVT

func (m *CronJob) MarshalVT() (dAtA []byte, err error)

func (*CronJob) ProtoReflect

func (x *CronJob) ProtoReflect() protoreflect.Message

func (*CronJob) SizeVT

func (m *CronJob) SizeVT() (n int)

func (*CronJob) UnmarshalVT

func (m *CronJob) UnmarshalVT(dAtA []byte) error

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) Load

func (p *EventPlugin) Load(ctx context.Context, pluginPath string, hostFunctions Api) (event, error)

func (*EventPlugin) LoadWithBytes

func (p *EventPlugin) LoadWithBytes(ctx context.Context, b []byte, hostFunctions Api) (event, error)

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) GetFileId

func (x *File) GetFileId() int64

func (*File) GetFileMd5

func (x *File) GetFileMd5() string

func (*File) GetFileSize

func (x *File) GetFileSize() int32

func (*File) GetFileToken

func (x *File) GetFileToken() string

func (*File) MarshalToSizedBufferVT

func (m *File) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*File) MarshalToVT

func (m *File) MarshalToVT(dAtA []byte) (int, error)

func (*File) MarshalVT

func (m *File) MarshalVT() (dAtA []byte, err error)

func (*File) ProtoReflect

func (x *File) ProtoReflect() protoreflect.Message

func (*File) SizeVT

func (m *File) SizeVT() (n int)

func (*File) UnmarshalVT

func (m *File) UnmarshalVT(dAtA []byte) error

type Files

type Files struct {
	File []*File `protobuf:"bytes,1,rep,name=file,proto3" json:"file,omitempty"`
	// contains filtered or unexported fields
}

func (*Files) GetFile

func (x *Files) GetFile() []*File

func (*Files) MarshalToSizedBufferVT

func (m *Files) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Files) MarshalToVT

func (m *Files) MarshalToVT(dAtA []byte) (int, error)

func (*Files) MarshalVT

func (m *Files) MarshalVT() (dAtA []byte, err error)

func (*Files) ProtoReflect

func (x *Files) ProtoReflect() protoreflect.Message

func (*Files) SizeVT

func (m *Files) SizeVT() (n int)

func (*Files) UnmarshalVT

func (m *Files) UnmarshalVT(dAtA []byte) error

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 (x *HttpReq) GetContent() []byte

func (*HttpReq) GetHeader

func (x *HttpReq) GetHeader() map[string]string

func (*HttpReq) GetMethod

func (x *HttpReq) GetMethod() HttpMethod

func (*HttpReq) GetUrl

func (x *HttpReq) GetUrl() string

func (*HttpReq) MarshalToSizedBufferVT

func (m *HttpReq) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*HttpReq) MarshalToVT

func (m *HttpReq) MarshalToVT(dAtA []byte) (int, error)

func (*HttpReq) MarshalVT

func (m *HttpReq) MarshalVT() (dAtA []byte, err error)

func (*HttpReq) ProtoReflect

func (x *HttpReq) ProtoReflect() protoreflect.Message

func (*HttpReq) SizeVT

func (m *HttpReq) SizeVT() (n int)

func (*HttpReq) UnmarshalVT

func (m *HttpReq) UnmarshalVT(dAtA []byte) error

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 (x *HttpRes) GetContent() []byte

func (*HttpRes) GetHeader

func (x *HttpRes) GetHeader() string

func (*HttpRes) GetStatusCode

func (x *HttpRes) GetStatusCode() int32

func (*HttpRes) MarshalToSizedBufferVT

func (m *HttpRes) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*HttpRes) MarshalToVT

func (m *HttpRes) MarshalToVT(dAtA []byte) (int, error)

func (*HttpRes) MarshalVT

func (m *HttpRes) MarshalVT() (dAtA []byte, err error)

func (*HttpRes) ProtoReflect

func (x *HttpRes) ProtoReflect() protoreflect.Message

func (*HttpRes) SizeVT

func (m *HttpRes) SizeVT() (n int)

func (*HttpRes) UnmarshalVT

func (m *HttpRes) UnmarshalVT(dAtA []byte) error

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 (x *InitReply) GetMessage() string

func (*InitReply) GetOk

func (x *InitReply) GetOk() bool

func (*InitReply) MarshalToSizedBufferVT

func (m *InitReply) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*InitReply) MarshalToVT

func (m *InitReply) MarshalToVT(dAtA []byte) (int, error)

func (*InitReply) MarshalVT

func (m *InitReply) MarshalVT() (dAtA []byte, err error)

func (*InitReply) ProtoReflect

func (x *InitReply) ProtoReflect() protoreflect.Message

func (*InitReply) SizeVT

func (m *InitReply) SizeVT() (n int)

func (*InitReply) UnmarshalVT

func (m *InitReply) UnmarshalVT(dAtA []byte) error

type JsonMsg

type JsonMsg struct {
	Json string `protobuf:"bytes,1,opt,name=json,proto3" json:"json,omitempty"`
	// contains filtered or unexported fields
}

func (*JsonMsg) GetJson

func (x *JsonMsg) GetJson() string

func (*JsonMsg) MarshalToSizedBufferVT

func (m *JsonMsg) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*JsonMsg) MarshalToVT

func (m *JsonMsg) MarshalToVT(dAtA []byte) (int, error)

func (*JsonMsg) MarshalVT

func (m *JsonMsg) MarshalVT() (dAtA []byte, err error)

func (*JsonMsg) ProtoReflect

func (x *JsonMsg) ProtoReflect() protoreflect.Message

func (*JsonMsg) SizeVT

func (m *JsonMsg) SizeVT() (n int)

func (*JsonMsg) UnmarshalVT

func (m *JsonMsg) UnmarshalVT(dAtA []byte) error

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 (x *LogReq) GetLogType() LogType

func (*LogReq) GetMsg

func (x *LogReq) GetMsg() string

func (*LogReq) MarshalToSizedBufferVT

func (m *LogReq) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*LogReq) MarshalToVT

func (m *LogReq) MarshalToVT(dAtA []byte) (int, error)

func (*LogReq) MarshalVT

func (m *LogReq) MarshalVT() (dAtA []byte, err error)

func (*LogReq) ProtoReflect

func (x *LogReq) ProtoReflect() protoreflect.Message

func (*LogReq) SizeVT

func (m *LogReq) SizeVT() (n int)

func (*LogReq) UnmarshalVT

func (m *LogReq) UnmarshalVT(dAtA []byte) error

type LogType

type LogType int32
const (
	LogType_Debug LogType = 0
	LogType_Info  LogType = 1
	LogType_Warn  LogType = 2
	LogType_Error LogType = 3
)

func (LogType) Enum

func (x LogType) Enum() *LogType

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) GetAtUin

func (x *MsgReq) GetAtUin() []int64

func (*MsgReq) GetBotUin

func (x *MsgReq) GetBotUin() int64

func (*MsgReq) GetGroupCode

func (x *MsgReq) GetGroupCode() int64

func (*MsgReq) GetJsonMsg

func (x *MsgReq) GetJsonMsg() *JsonMsg

func (*MsgReq) GetMsg

func (m *MsgReq) GetMsg() isMsgReq_Msg

func (*MsgReq) GetPicMsg

func (x *MsgReq) GetPicMsg() *Files

func (*MsgReq) GetTextMsg

func (x *MsgReq) GetTextMsg() *TextMsg

func (*MsgReq) GetToUin

func (x *MsgReq) GetToUin() int64

func (*MsgReq) GetXmlMsg

func (x *MsgReq) GetXmlMsg() *XmlMsg

func (*MsgReq) MarshalToSizedBufferVT

func (m *MsgReq) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*MsgReq) MarshalToVT

func (m *MsgReq) MarshalToVT(dAtA []byte) (int, error)

func (*MsgReq) MarshalVT

func (m *MsgReq) MarshalVT() (dAtA []byte, err error)

func (*MsgReq) ProtoReflect

func (x *MsgReq) ProtoReflect() protoreflect.Message

func (*MsgReq) SizeVT

func (m *MsgReq) SizeVT() (n int)

func (*MsgReq) UnmarshalVT

func (m *MsgReq) UnmarshalVT(dAtA []byte) error

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) GetErrMsg

func (x *SendReply) GetErrMsg() string

func (*SendReply) GetRet

func (x *SendReply) GetRet() int32

func (*SendReply) MarshalToSizedBufferVT

func (m *SendReply) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*SendReply) MarshalToVT

func (m *SendReply) MarshalToVT(dAtA []byte) (int, error)

func (*SendReply) MarshalVT

func (m *SendReply) MarshalVT() (dAtA []byte, err error)

func (*SendReply) ProtoReflect

func (x *SendReply) ProtoReflect() protoreflect.Message

func (*SendReply) SizeVT

func (m *SendReply) SizeVT() (n int)

func (*SendReply) UnmarshalVT

func (m *SendReply) UnmarshalVT(dAtA []byte) error

type TextMsg

type TextMsg struct {
	Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	// contains filtered or unexported fields
}

func (*TextMsg) GetText

func (x *TextMsg) GetText() string

func (*TextMsg) MarshalToSizedBufferVT

func (m *TextMsg) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*TextMsg) MarshalToVT

func (m *TextMsg) MarshalToVT(dAtA []byte) (int, error)

func (*TextMsg) MarshalVT

func (m *TextMsg) MarshalVT() (dAtA []byte, err error)

func (*TextMsg) ProtoReflect

func (x *TextMsg) ProtoReflect() protoreflect.Message

func (*TextMsg) SizeVT

func (m *TextMsg) SizeVT() (n int)

func (*TextMsg) UnmarshalVT

func (m *TextMsg) UnmarshalVT(dAtA []byte) error

type UploadId

type UploadId int32
const (
	UploadId_Group  UploadId = 0
	UploadId_Friend UploadId = 1
)

func (UploadId) Enum

func (x UploadId) Enum() *UploadId

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 (x *UploadReq) GetBase64Buf() string

func (*UploadReq) GetBotUin

func (x *UploadReq) GetBotUin() int64

func (*UploadReq) GetFile

func (m *UploadReq) GetFile() isUploadReq_File

func (*UploadReq) GetPath

func (x *UploadReq) GetPath() string

func (*UploadReq) GetUploadId

func (x *UploadReq) GetUploadId() UploadId

func (*UploadReq) GetUrl

func (x *UploadReq) GetUrl() string

func (*UploadReq) MarshalToSizedBufferVT

func (m *UploadReq) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*UploadReq) MarshalToVT

func (m *UploadReq) MarshalToVT(dAtA []byte) (int, error)

func (*UploadReq) MarshalVT

func (m *UploadReq) MarshalVT() (dAtA []byte, err error)

func (*UploadReq) ProtoReflect

func (x *UploadReq) ProtoReflect() protoreflect.Message

func (*UploadReq) SizeVT

func (m *UploadReq) SizeVT() (n int)

func (*UploadReq) UnmarshalVT

func (m *UploadReq) UnmarshalVT(dAtA []byte) error

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

type WazeroNewRuntime func(context.Context) (wazero.Runtime, error)

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) GetXml

func (x *XmlMsg) GetXml() string

func (*XmlMsg) MarshalToSizedBufferVT

func (m *XmlMsg) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*XmlMsg) MarshalToVT

func (m *XmlMsg) MarshalToVT(dAtA []byte) (int, error)

func (*XmlMsg) MarshalVT

func (m *XmlMsg) MarshalVT() (dAtA []byte, err error)

func (*XmlMsg) ProtoReflect

func (x *XmlMsg) ProtoReflect() protoreflect.Message

func (*XmlMsg) SizeVT

func (m *XmlMsg) SizeVT() (n int)

func (*XmlMsg) UnmarshalVT

func (m *XmlMsg) UnmarshalVT(dAtA []byte) error

Directories

Path Synopsis
library

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL