common

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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
const (
	Channel_ToUser  Channel = 0
	Channel_ToGroup Channel = 1
)

func (Channel) Descriptor

func (Channel) Descriptor() protoreflect.EnumDescriptor

func (Channel) Enum

func (x Channel) Enum() *Channel

func (Channel) EnumDescriptor deprecated

func (Channel) EnumDescriptor() ([]byte, []int)

Deprecated: Use Channel.Descriptor instead.

func (Channel) Number

func (x Channel) Number() protoreflect.EnumNumber

func (Channel) String

func (x Channel) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Common.ProtoReflect.Descriptor instead.

func (*Common) GetChannelType

func (x *Common) GetChannelType() Channel

func (*Common) GetDatetime

func (x *Common) GetDatetime() uint64

func (*Common) GetFrom

func (x *Common) GetFrom() string

func (*Common) GetMid

func (x *Common) GetMid() int64

func (*Common) GetMsg

func (x *Common) GetMsg() []byte

func (*Common) GetMsgType

func (x *Common) GetMsgType() MsgType

func (*Common) GetReference

func (x *Common) GetReference() *Reference

func (*Common) GetSeq

func (x *Common) GetSeq() string

func (*Common) GetSource

func (x *Common) GetSource() *Source

func (*Common) GetTarget

func (x *Common) GetTarget() string

func (*Common) ProtoMessage

func (*Common) ProtoMessage()

func (*Common) ProtoReflect

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

func (*Common) Reset

func (x *Common) Reset()

func (*Common) String

func (x *Common) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use CommonAck.ProtoReflect.Descriptor instead.

func (*CommonAck) GetDatetime

func (x *CommonAck) GetDatetime() uint64

func (*CommonAck) GetMid

func (x *CommonAck) GetMid() int64

func (*CommonAck) ProtoMessage

func (*CommonAck) ProtoMessage()

func (*CommonAck) ProtoReflect

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

func (*CommonAck) Reset

func (x *CommonAck) Reset()

func (*CommonAck) String

func (x *CommonAck) String() string

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

func (x MsgType) Enum() *MsgType

func (MsgType) EnumDescriptor deprecated

func (MsgType) EnumDescriptor() ([]byte, []int)

Deprecated: Use MsgType.Descriptor instead.

func (MsgType) Number

func (x MsgType) Number() protoreflect.EnumNumber

func (MsgType) String

func (x MsgType) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Proto.ProtoReflect.Descriptor instead.

func (*Proto) GetBody

func (x *Proto) GetBody() []byte

func (*Proto) GetEventType

func (x *Proto) GetEventType() Proto_EventType

func (*Proto) ProtoMessage

func (*Proto) ProtoMessage()

func (*Proto) ProtoReflect

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

func (*Proto) Reset

func (x *Proto) Reset()

func (*Proto) String

func (x *Proto) String() string

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) 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 (Proto_EventType) String

func (x Proto_EventType) String() string

func (Proto_EventType) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Reference.ProtoReflect.Descriptor instead.

func (*Reference) GetRef

func (x *Reference) GetRef() int64

func (*Reference) GetTopic

func (x *Reference) GetTopic() int64

func (*Reference) ProtoMessage

func (*Reference) ProtoMessage()

func (*Reference) ProtoReflect

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

func (*Reference) Reset

func (x *Reference) Reset()

func (*Reference) String

func (x *Reference) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Source.ProtoReflect.Descriptor instead.

func (*Source) GetChannelType

func (x *Source) GetChannelType() Channel

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

func (*Source) Reset

func (x *Source) Reset()

func (*Source) String

func (x *Source) String() string

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

Jump to

Keyboard shortcuts

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