Documentation
¶
Index ¶
- Variables
- type Channel
- type Common
- func (*Common) Descriptor() ([]byte, []int)deprecated
- func (x *Common) GetChannelType() Channel
- func (x *Common) GetDatetime() uint64
- func (x *Common) GetFrom() string
- func (x *Common) GetMid() int64
- func (x *Common) GetMsg() []byte
- func (x *Common) GetMsgType() MsgType
- func (x *Common) GetReference() *Reference
- func (x *Common) GetSeq() string
- func (x *Common) GetSource() *Source
- func (x *Common) GetTarget() string
- func (*Common) ProtoMessage()
- func (x *Common) ProtoReflect() protoreflect.Message
- func (x *Common) Reset()
- func (x *Common) String() string
- type CommonAck
- type MsgType
- type Proto
- type Proto_EventType
- func (Proto_EventType) Descriptor() protoreflect.EnumDescriptor
- func (x Proto_EventType) Enum() *Proto_EventType
- func (Proto_EventType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Proto_EventType) Number() protoreflect.EnumNumber
- func (x Proto_EventType) String() string
- func (Proto_EventType) Type() protoreflect.EnumType
- type Reference
- type Source
- func (*Source) Descriptor() ([]byte, []int)deprecated
- func (x *Source) GetChannelType() Channel
- func (x *Source) GetFrom() *SourceUser
- func (x *Source) GetTarget() *SourceUser
- func (*Source) ProtoMessage()
- func (x *Source) ProtoReflect() protoreflect.Message
- func (x *Source) Reset()
- func (x *Source) String() string
- type SourceUser
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Channel_name = map[int32]string{ 0: "ToUser", 1: "ToGroup", } Channel_value = map[string]int32{ "ToUser": 0, "ToGroup": 1, } )
Enum value maps for Channel.
View Source
var ( MsgType_name = map[int32]string{ 0: "System", 1: "Text", 2: "Audio", 3: "Image", 4: "Video", 5: "File", 6: "Card", 7: "Notice", 8: "Forward", 9: "RTCCall", 10: "Transfer", 11: "Collect", 12: "RedPacket", 13: "ContactCard", } MsgType_value = map[string]int32{ "System": 0, "Text": 1, "Audio": 2, "Image": 3, "Video": 4, "File": 5, "Card": 6, "Notice": 7, "Forward": 8, "RTCCall": 9, "Transfer": 10, "Collect": 11, "RedPacket": 12, "ContactCard": 13, } )
Enum value maps for MsgType.
View Source
var ( Proto_EventType_name = map[int32]string{ 0: "common", 1: "commonAck", 2: "Signal", 3: "SYSNotice", } Proto_EventType_value = map[string]int32{ "common": 0, "commonAck": 1, "Signal": 2, "SYSNotice": 3, } )
Enum value maps for Proto_EventType.
View Source
var File_github_com_txchat_imparse_proto_common_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel int32
func (Channel) Descriptor ¶
func (Channel) Descriptor() protoreflect.EnumDescriptor
func (Channel) EnumDescriptor
deprecated
func (Channel) Number ¶
func (x Channel) Number() protoreflect.EnumNumber
func (Channel) Type ¶
func (Channel) Type() protoreflect.EnumType
type Common ¶
type Common struct {
ChannelType Channel `protobuf:"varint,1,opt,name=channelType,proto3,enum=imparse.proto.Channel" json:"channelType,omitempty"`
Mid int64 `protobuf:"varint,2,opt,name=mid,proto3" json:"mid,omitempty"`
Seq string `protobuf:"bytes,3,opt,name=seq,proto3" json:"seq,omitempty"`
From string `protobuf:"bytes,4,opt,name=from,proto3" json:"from,omitempty"`
Target string `protobuf:"bytes,5,opt,name=target,proto3" json:"target,omitempty"`
MsgType MsgType `protobuf:"varint,6,opt,name=msgType,proto3,enum=imparse.proto.MsgType" json:"msgType,omitempty"`
Msg []byte `protobuf:"bytes,7,opt,name=msg,proto3" json:"msg,omitempty"`
Datetime uint64 `protobuf:"varint,8,opt,name=datetime,proto3" json:"datetime,omitempty"`
Source *Source `protobuf:"bytes,9,opt,name=source,proto3" json:"source,omitempty"`
Reference *Reference `protobuf:"bytes,10,opt,name=reference,proto3" json:"reference,omitempty"`
// contains filtered or unexported fields
}
func (*Common) Descriptor
deprecated
func (*Common) GetChannelType ¶
func (*Common) GetDatetime ¶
func (*Common) GetMsgType ¶
func (*Common) GetReference ¶
func (*Common) ProtoMessage ¶
func (*Common) ProtoMessage()
func (*Common) ProtoReflect ¶
func (x *Common) ProtoReflect() protoreflect.Message
type CommonAck ¶
type CommonAck struct {
Mid int64 `protobuf:"varint,2,opt,name=mid,proto3" json:"mid,omitempty"`
Datetime uint64 `protobuf:"varint,8,opt,name=datetime,proto3" json:"datetime,omitempty"`
// contains filtered or unexported fields
}
func (*CommonAck) Descriptor
deprecated
func (*CommonAck) GetDatetime ¶
func (*CommonAck) ProtoMessage ¶
func (*CommonAck) ProtoMessage()
func (*CommonAck) ProtoReflect ¶
func (x *CommonAck) ProtoReflect() protoreflect.Message
type MsgType ¶
type MsgType int32
common msg define
const ( MsgType_System MsgType = 0 MsgType_Text MsgType = 1 MsgType_Audio MsgType = 2 MsgType_Image MsgType = 3 MsgType_Video MsgType = 4 MsgType_File MsgType = 5 MsgType_Card MsgType = 6 MsgType_Notice MsgType = 7 MsgType_Forward MsgType = 8 MsgType_RTCCall MsgType = 9 MsgType_Transfer MsgType = 10 MsgType_Collect MsgType = 11 MsgType_RedPacket MsgType = 12 MsgType_ContactCard MsgType = 13 )
func (MsgType) Descriptor ¶
func (MsgType) Descriptor() protoreflect.EnumDescriptor
func (MsgType) EnumDescriptor
deprecated
func (MsgType) Number ¶
func (x MsgType) Number() protoreflect.EnumNumber
func (MsgType) Type ¶
func (MsgType) Type() protoreflect.EnumType
type Proto ¶
type Proto struct {
EventType Proto_EventType `protobuf:"varint,1,opt,name=eventType,proto3,enum=imparse.proto.Proto_EventType" json:"eventType,omitempty"`
Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
// contains filtered or unexported fields
}
func (*Proto) Descriptor
deprecated
func (*Proto) GetEventType ¶
func (x *Proto) GetEventType() Proto_EventType
func (*Proto) ProtoMessage ¶
func (*Proto) ProtoMessage()
func (*Proto) ProtoReflect ¶
func (x *Proto) ProtoReflect() protoreflect.Message
type Proto_EventType ¶
type Proto_EventType int32
event define
const ( Proto_common Proto_EventType = 0 Proto_commonAck Proto_EventType = 1 Proto_Signal Proto_EventType = 2 Proto_SYSNotice Proto_EventType = 3 )
func (Proto_EventType) Descriptor ¶
func (Proto_EventType) Descriptor() protoreflect.EnumDescriptor
func (Proto_EventType) Enum ¶
func (x Proto_EventType) Enum() *Proto_EventType
func (Proto_EventType) EnumDescriptor
deprecated
func (Proto_EventType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Proto_EventType.Descriptor instead.
func (Proto_EventType) Number ¶
func (x Proto_EventType) Number() protoreflect.EnumNumber
func (Proto_EventType) String ¶
func (x Proto_EventType) String() string
func (Proto_EventType) Type ¶
func (Proto_EventType) Type() protoreflect.EnumType
type Reference ¶
type Reference struct {
Topic int64 `protobuf:"varint,1,opt,name=topic,proto3" json:"topic,omitempty"`
Ref int64 `protobuf:"varint,2,opt,name=ref,proto3" json:"ref,omitempty"`
// contains filtered or unexported fields
}
func (*Reference) Descriptor
deprecated
func (*Reference) ProtoMessage ¶
func (*Reference) ProtoMessage()
func (*Reference) ProtoReflect ¶
func (x *Reference) ProtoReflect() protoreflect.Message
type Source ¶
type Source struct {
ChannelType Channel `protobuf:"varint,1,opt,name=channelType,proto3,enum=imparse.proto.Channel" json:"channelType,omitempty"`
From *SourceUser `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
Target *SourceUser `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
// contains filtered or unexported fields
}
func (*Source) Descriptor
deprecated
func (*Source) GetChannelType ¶
func (*Source) GetFrom ¶
func (x *Source) GetFrom() *SourceUser
func (*Source) GetTarget ¶
func (x *Source) GetTarget() *SourceUser
func (*Source) ProtoMessage ¶
func (*Source) ProtoMessage()
func (*Source) ProtoReflect ¶
func (x *Source) ProtoReflect() protoreflect.Message
type SourceUser ¶
type SourceUser struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*SourceUser) Descriptor
deprecated
func (*SourceUser) Descriptor() ([]byte, []int)
Deprecated: Use SourceUser.ProtoReflect.Descriptor instead.
func (*SourceUser) GetId ¶
func (x *SourceUser) GetId() string
func (*SourceUser) GetName ¶
func (x *SourceUser) GetName() string
func (*SourceUser) ProtoMessage ¶
func (*SourceUser) ProtoMessage()
func (*SourceUser) ProtoReflect ¶
func (x *SourceUser) ProtoReflect() protoreflect.Message
func (*SourceUser) Reset ¶
func (x *SourceUser) Reset()
func (*SourceUser) String ¶
func (x *SourceUser) String() string
Click to show internal directories.
Click to hide internal directories.