chat

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ChatChan_name = map[int32]string{
		0:  "None",
		1:  "comprehensive",
		2:  "World",
		3:  "Zone",
		4:  "Local",
		5:  "Cross",
		8:  "Private",
		9:  "System",
		10: "Scene",
	}
	ChatChan_value = map[string]int32{
		"None":          0,
		"comprehensive": 1,
		"World":         2,
		"Zone":          3,
		"Local":         4,
		"Cross":         5,
		"Private":       8,
		"System":        9,
		"Scene":         10,
	}
)

Enum value maps for ChatChan.

Functions

This section is empty.

Types

type CSCrossSrvChatMsg added in v1.3.7

type CSCrossSrvChatMsg struct {
	Content      string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	IsVoice      bool   `protobuf:"varint,2,opt,name=isVoice,proto3" json:"isVoice,omitempty"`
	MessageType  uint32 `protobuf:"varint,3,opt,name=messageType,proto3" json:"messageType,omitempty"`
	IsUseTrumpet bool   `protobuf:"varint,4,opt,name=isUseTrumpet,proto3" json:"isUseTrumpet,omitempty"`
	// contains filtered or unexported fields
}

func (*CSCrossSrvChatMsg) Descriptor deprecated added in v1.3.7

func (*CSCrossSrvChatMsg) Descriptor() ([]byte, []int)

Deprecated: Use CSCrossSrvChatMsg.ProtoReflect.Descriptor instead.

func (*CSCrossSrvChatMsg) GetContent added in v1.3.7

func (x *CSCrossSrvChatMsg) GetContent() string

func (*CSCrossSrvChatMsg) GetIsUseTrumpet added in v1.3.7

func (x *CSCrossSrvChatMsg) GetIsUseTrumpet() bool

func (*CSCrossSrvChatMsg) GetIsVoice added in v1.3.7

func (x *CSCrossSrvChatMsg) GetIsVoice() bool

func (*CSCrossSrvChatMsg) GetMessageType added in v1.3.7

func (x *CSCrossSrvChatMsg) GetMessageType() uint32

func (*CSCrossSrvChatMsg) ProtoMessage added in v1.3.7

func (*CSCrossSrvChatMsg) ProtoMessage()

func (*CSCrossSrvChatMsg) ProtoReflect added in v1.3.7

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

func (*CSCrossSrvChatMsg) Reset added in v1.3.7

func (x *CSCrossSrvChatMsg) Reset()

func (*CSCrossSrvChatMsg) String added in v1.3.7

func (x *CSCrossSrvChatMsg) String() string

func (*CSCrossSrvChatMsg) Validate added in v1.3.7

func (m *CSCrossSrvChatMsg) Validate() error

Validate checks the field values on CSCrossSrvChatMsg with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type CSCrossSrvChatMsgValidationError added in v1.3.7

type CSCrossSrvChatMsgValidationError struct {
	// contains filtered or unexported fields
}

CSCrossSrvChatMsgValidationError is the validation error returned by CSCrossSrvChatMsg.Validate if the designated constraints aren't met.

func (CSCrossSrvChatMsgValidationError) Cause added in v1.3.7

Cause function returns cause value.

func (CSCrossSrvChatMsgValidationError) Error added in v1.3.7

Error satisfies the builtin error interface

func (CSCrossSrvChatMsgValidationError) ErrorName added in v1.3.7

ErrorName returns error name.

func (CSCrossSrvChatMsgValidationError) Field added in v1.3.7

Field function returns field value.

func (CSCrossSrvChatMsgValidationError) Key added in v1.3.7

Key function returns key value.

func (CSCrossSrvChatMsgValidationError) Reason added in v1.3.7

Reason function returns reason value.

type ChatBaseInfo

type ChatBaseInfo struct {
	BubbleFrame uint32 `protobuf:"varint,1,opt,name=bubbleFrame,proto3" json:"bubbleFrame,omitempty"` // 气泡框  s 表示发送者
	Head        uint32 `protobuf:"varint,2,opt,name=head,proto3" json:"head,omitempty"`               // 头像
	HeadFrame   uint32 `protobuf:"varint,3,opt,name=headFrame,proto3" json:"headFrame,omitempty"`     // 头像框
	NickName    string `protobuf:"bytes,4,opt,name=nickName,proto3" json:"nickName,omitempty"`        // 昵称
	Id          uint64 `protobuf:"varint,5,opt,name=Id,proto3" json:"Id,omitempty"`
	// contains filtered or unexported fields
}

func (*ChatBaseInfo) Descriptor deprecated

func (*ChatBaseInfo) Descriptor() ([]byte, []int)

Deprecated: Use ChatBaseInfo.ProtoReflect.Descriptor instead.

func (*ChatBaseInfo) GetBubbleFrame

func (x *ChatBaseInfo) GetBubbleFrame() uint32

func (*ChatBaseInfo) GetHead

func (x *ChatBaseInfo) GetHead() uint32

func (*ChatBaseInfo) GetHeadFrame

func (x *ChatBaseInfo) GetHeadFrame() uint32

func (*ChatBaseInfo) GetId

func (x *ChatBaseInfo) GetId() uint64

func (*ChatBaseInfo) GetNickName

func (x *ChatBaseInfo) GetNickName() string

func (*ChatBaseInfo) ProtoMessage

func (*ChatBaseInfo) ProtoMessage()

func (*ChatBaseInfo) ProtoReflect

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

func (*ChatBaseInfo) Reset

func (x *ChatBaseInfo) Reset()

func (*ChatBaseInfo) String

func (x *ChatBaseInfo) String() string

func (*ChatBaseInfo) Validate

func (m *ChatBaseInfo) Validate() error

Validate checks the field values on ChatBaseInfo with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ChatBaseInfoValidationError

type ChatBaseInfoValidationError struct {
	// contains filtered or unexported fields
}

ChatBaseInfoValidationError is the validation error returned by ChatBaseInfo.Validate if the designated constraints aren't met.

func (ChatBaseInfoValidationError) Cause

Cause function returns cause value.

func (ChatBaseInfoValidationError) Error

Error satisfies the builtin error interface

func (ChatBaseInfoValidationError) ErrorName

func (e ChatBaseInfoValidationError) ErrorName() string

ErrorName returns error name.

func (ChatBaseInfoValidationError) Field

Field function returns field value.

func (ChatBaseInfoValidationError) Key

Key function returns key value.

func (ChatBaseInfoValidationError) Reason

Reason function returns reason value.

type ChatChan

type ChatChan int32
const (
	ChatChan_None          ChatChan = 0  // 空
	ChatChan_comprehensive ChatChan = 1  // 综合聊天
	ChatChan_World         ChatChan = 2  // 全服聊天
	ChatChan_Zone          ChatChan = 3  // 本区聊天
	ChatChan_Local         ChatChan = 4  // 本服聊天
	ChatChan_Cross         ChatChan = 5  // 跨服聊天
	ChatChan_Private       ChatChan = 8  // 私有聊天
	ChatChan_System        ChatChan = 9  // 系统聊天
	ChatChan_Scene         ChatChan = 10 // 附近聊天
)

func (ChatChan) Descriptor

func (ChatChan) Descriptor() protoreflect.EnumDescriptor

func (ChatChan) Enum

func (x ChatChan) Enum() *ChatChan

func (ChatChan) EnumDescriptor deprecated

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

Deprecated: Use ChatChan.Descriptor instead.

func (ChatChan) Number

func (x ChatChan) Number() protoreflect.EnumNumber

func (ChatChan) String

func (x ChatChan) String() string

func (ChatChan) Type

type ChatStatistics

type ChatStatistics struct {
	Id       uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`             //
	UseNum   uint32 `protobuf:"varint,2,opt,name=UseNum,proto3" json:"UseNum,omitempty"`     // 当天使用次数
	TimeNum  uint32 `protobuf:"varint,3,opt,name=TimeNum,proto3" json:"TimeNum,omitempty"`   // 单位时间次数
	Speaker  uint32 `protobuf:"varint,4,opt,name=Speaker,proto3" json:"Speaker,omitempty"`   // 使用喇叭次数
	LastTime int64  `protobuf:"varint,5,opt,name=LastTime,proto3" json:"LastTime,omitempty"` // 最后一次发送时间
	PriNum   uint32 `protobuf:"varint,6,opt,name=PriNum,proto3" json:"PriNum,omitempty"`     // 私聊次数
	// contains filtered or unexported fields
}

func (*ChatStatistics) Descriptor deprecated

func (*ChatStatistics) Descriptor() ([]byte, []int)

Deprecated: Use ChatStatistics.ProtoReflect.Descriptor instead.

func (*ChatStatistics) GetId

func (x *ChatStatistics) GetId() uint32

func (*ChatStatistics) GetLastTime

func (x *ChatStatistics) GetLastTime() int64

func (*ChatStatistics) GetPriNum

func (x *ChatStatistics) GetPriNum() uint32

func (*ChatStatistics) GetSpeaker

func (x *ChatStatistics) GetSpeaker() uint32

func (*ChatStatistics) GetTimeNum

func (x *ChatStatistics) GetTimeNum() uint32

func (*ChatStatistics) GetUseNum

func (x *ChatStatistics) GetUseNum() uint32

func (*ChatStatistics) ProtoMessage

func (*ChatStatistics) ProtoMessage()

func (*ChatStatistics) ProtoReflect

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

func (*ChatStatistics) Reset

func (x *ChatStatistics) Reset()

func (*ChatStatistics) String

func (x *ChatStatistics) String() string

func (*ChatStatistics) Validate

func (m *ChatStatistics) Validate() error

Validate checks the field values on ChatStatistics with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ChatStatisticsValidationError

type ChatStatisticsValidationError struct {
	// contains filtered or unexported fields
}

ChatStatisticsValidationError is the validation error returned by ChatStatistics.Validate if the designated constraints aren't met.

func (ChatStatisticsValidationError) Cause

Cause function returns cause value.

func (ChatStatisticsValidationError) Error

Error satisfies the builtin error interface

func (ChatStatisticsValidationError) ErrorName

func (e ChatStatisticsValidationError) ErrorName() string

ErrorName returns error name.

func (ChatStatisticsValidationError) Field

Field function returns field value.

func (ChatStatisticsValidationError) Key

Key function returns key value.

func (ChatStatisticsValidationError) Reason

Reason function returns reason value.

type PrivateChatMsg

type PrivateChatMsg struct {
	Content  string        `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	SendTime int64         `protobuf:"varint,2,opt,name=sendTime,proto3" json:"sendTime,omitempty"`
	Sender   *ChatBaseInfo `protobuf:"bytes,3,opt,name=Sender,proto3" json:"Sender,omitempty"`
	Receiver *ChatBaseInfo `protobuf:"bytes,4,opt,name=receiver,proto3" json:"receiver,omitempty"`
	IsVoice  bool          `protobuf:"varint,5,opt,name=isVoice,proto3" json:"isVoice,omitempty"`
	Degree   int32         `protobuf:"varint,6,opt,name=degree,proto3" json:"degree,omitempty"` // 好友度
	// contains filtered or unexported fields
}

func (*PrivateChatMsg) Descriptor deprecated

func (*PrivateChatMsg) Descriptor() ([]byte, []int)

Deprecated: Use PrivateChatMsg.ProtoReflect.Descriptor instead.

func (*PrivateChatMsg) GetContent

func (x *PrivateChatMsg) GetContent() string

func (*PrivateChatMsg) GetDegree

func (x *PrivateChatMsg) GetDegree() int32

func (*PrivateChatMsg) GetIsVoice

func (x *PrivateChatMsg) GetIsVoice() bool

func (*PrivateChatMsg) GetReceiver

func (x *PrivateChatMsg) GetReceiver() *ChatBaseInfo

func (*PrivateChatMsg) GetSendTime

func (x *PrivateChatMsg) GetSendTime() int64

func (*PrivateChatMsg) GetSender

func (x *PrivateChatMsg) GetSender() *ChatBaseInfo

func (*PrivateChatMsg) ProtoMessage

func (*PrivateChatMsg) ProtoMessage()

func (*PrivateChatMsg) ProtoReflect

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

func (*PrivateChatMsg) Reset

func (x *PrivateChatMsg) Reset()

func (*PrivateChatMsg) String

func (x *PrivateChatMsg) String() string

func (*PrivateChatMsg) Validate

func (m *PrivateChatMsg) Validate() error

Validate checks the field values on PrivateChatMsg with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type PrivateChatMsgValidationError

type PrivateChatMsgValidationError struct {
	// contains filtered or unexported fields
}

PrivateChatMsgValidationError is the validation error returned by PrivateChatMsg.Validate if the designated constraints aren't met.

func (PrivateChatMsgValidationError) Cause

Cause function returns cause value.

func (PrivateChatMsgValidationError) Error

Error satisfies the builtin error interface

func (PrivateChatMsgValidationError) ErrorName

func (e PrivateChatMsgValidationError) ErrorName() string

ErrorName returns error name.

func (PrivateChatMsgValidationError) Field

Field function returns field value.

func (PrivateChatMsgValidationError) Key

Key function returns key value.

func (PrivateChatMsgValidationError) Reason

Reason function returns reason value.

type SCCrossSrvChatMsg added in v1.3.7

type SCCrossSrvChatMsg struct {
	Content      string        `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	Sender       *ChatBaseInfo `protobuf:"bytes,2,opt,name=Sender,proto3" json:"Sender,omitempty"`
	Receiver     *ChatBaseInfo `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"`
	IsVoice      bool          `protobuf:"varint,4,opt,name=isVoice,proto3" json:"isVoice,omitempty"`
	SendTime     int64         `protobuf:"varint,5,opt,name=SendTime,proto3" json:"SendTime,omitempty"`
	Degree       int32         `protobuf:"varint,6,opt,name=degree,proto3" json:"degree,omitempty"`
	ZoneID       int32         `protobuf:"varint,7,opt,name=zoneID,proto3" json:"zoneID,omitempty"`
	MessageType  uint32        `protobuf:"varint,8,opt,name=messageType,proto3" json:"messageType,omitempty"`
	ProcIndex    uint32        `protobuf:"varint,9,opt,name=procIndex,proto3" json:"procIndex,omitempty"`
	RangeOfSrv   uint32        `protobuf:"varint,10,opt,name=rangeOfSrv,proto3" json:"rangeOfSrv,omitempty"`
	IsUseTrumpet bool          `protobuf:"varint,11,opt,name=isUseTrumpet,proto3" json:"isUseTrumpet,omitempty"`
	OldContent   string        `protobuf:"bytes,12,opt,name=oldContent,proto3" json:"oldContent,omitempty"`
	// contains filtered or unexported fields
}

func (*SCCrossSrvChatMsg) Descriptor deprecated added in v1.3.7

func (*SCCrossSrvChatMsg) Descriptor() ([]byte, []int)

Deprecated: Use SCCrossSrvChatMsg.ProtoReflect.Descriptor instead.

func (*SCCrossSrvChatMsg) GetContent added in v1.3.7

func (x *SCCrossSrvChatMsg) GetContent() string

func (*SCCrossSrvChatMsg) GetDegree added in v1.3.7

func (x *SCCrossSrvChatMsg) GetDegree() int32

func (*SCCrossSrvChatMsg) GetIsUseTrumpet added in v1.3.7

func (x *SCCrossSrvChatMsg) GetIsUseTrumpet() bool

func (*SCCrossSrvChatMsg) GetIsVoice added in v1.3.7

func (x *SCCrossSrvChatMsg) GetIsVoice() bool

func (*SCCrossSrvChatMsg) GetMessageType added in v1.3.7

func (x *SCCrossSrvChatMsg) GetMessageType() uint32

func (*SCCrossSrvChatMsg) GetOldContent added in v1.3.7

func (x *SCCrossSrvChatMsg) GetOldContent() string

func (*SCCrossSrvChatMsg) GetProcIndex added in v1.3.7

func (x *SCCrossSrvChatMsg) GetProcIndex() uint32

func (*SCCrossSrvChatMsg) GetRangeOfSrv added in v1.3.7

func (x *SCCrossSrvChatMsg) GetRangeOfSrv() uint32

func (*SCCrossSrvChatMsg) GetReceiver added in v1.3.7

func (x *SCCrossSrvChatMsg) GetReceiver() *ChatBaseInfo

func (*SCCrossSrvChatMsg) GetSendTime added in v1.3.7

func (x *SCCrossSrvChatMsg) GetSendTime() int64

func (*SCCrossSrvChatMsg) GetSender added in v1.3.7

func (x *SCCrossSrvChatMsg) GetSender() *ChatBaseInfo

func (*SCCrossSrvChatMsg) GetZoneID added in v1.3.7

func (x *SCCrossSrvChatMsg) GetZoneID() int32

func (*SCCrossSrvChatMsg) ProtoMessage added in v1.3.7

func (*SCCrossSrvChatMsg) ProtoMessage()

func (*SCCrossSrvChatMsg) ProtoReflect added in v1.3.7

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

func (*SCCrossSrvChatMsg) Reset added in v1.3.7

func (x *SCCrossSrvChatMsg) Reset()

func (*SCCrossSrvChatMsg) String added in v1.3.7

func (x *SCCrossSrvChatMsg) String() string

func (*SCCrossSrvChatMsg) Validate added in v1.3.7

func (m *SCCrossSrvChatMsg) Validate() error

Validate checks the field values on SCCrossSrvChatMsg with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type SCCrossSrvChatMsgValidationError added in v1.3.7

type SCCrossSrvChatMsgValidationError struct {
	// contains filtered or unexported fields
}

SCCrossSrvChatMsgValidationError is the validation error returned by SCCrossSrvChatMsg.Validate if the designated constraints aren't met.

func (SCCrossSrvChatMsgValidationError) Cause added in v1.3.7

Cause function returns cause value.

func (SCCrossSrvChatMsgValidationError) Error added in v1.3.7

Error satisfies the builtin error interface

func (SCCrossSrvChatMsgValidationError) ErrorName added in v1.3.7

ErrorName returns error name.

func (SCCrossSrvChatMsgValidationError) Field added in v1.3.7

Field function returns field value.

func (SCCrossSrvChatMsgValidationError) Key added in v1.3.7

Key function returns key value.

func (SCCrossSrvChatMsgValidationError) Reason added in v1.3.7

Reason function returns reason value.

type SCSystemMessage added in v1.4.0

type SCSystemMessage struct {
	Content  string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	MsgType  uint32 `protobuf:"varint,2,opt,name=msgType,proto3" json:"msgType,omitempty"`
	SendTime int64  `protobuf:"varint,3,opt,name=sendTime,proto3" json:"sendTime,omitempty"`
	Language string `protobuf:"bytes,4,opt,name=language,proto3" json:"language,omitempty"`
	Paras    string `protobuf:"bytes,5,opt,name=paras,proto3" json:"paras,omitempty"`
	Modules  string `protobuf:"bytes,6,opt,name=modules,proto3" json:"modules,omitempty"`
	Channels string `protobuf:"bytes,7,opt,name=channels,proto3" json:"channels,omitempty"`
	// contains filtered or unexported fields
}

func (*SCSystemMessage) Descriptor deprecated added in v1.4.0

func (*SCSystemMessage) Descriptor() ([]byte, []int)

Deprecated: Use SCSystemMessage.ProtoReflect.Descriptor instead.

func (*SCSystemMessage) GetChannels added in v1.4.0

func (x *SCSystemMessage) GetChannels() string

func (*SCSystemMessage) GetContent added in v1.4.0

func (x *SCSystemMessage) GetContent() string

func (*SCSystemMessage) GetLanguage added in v1.4.0

func (x *SCSystemMessage) GetLanguage() string

func (*SCSystemMessage) GetModules added in v1.4.0

func (x *SCSystemMessage) GetModules() string

func (*SCSystemMessage) GetMsgType added in v1.4.0

func (x *SCSystemMessage) GetMsgType() uint32

func (*SCSystemMessage) GetParas added in v1.4.0

func (x *SCSystemMessage) GetParas() string

func (*SCSystemMessage) GetSendTime added in v1.4.0

func (x *SCSystemMessage) GetSendTime() int64

func (*SCSystemMessage) ProtoMessage added in v1.4.0

func (*SCSystemMessage) ProtoMessage()

func (*SCSystemMessage) ProtoReflect added in v1.4.0

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

func (*SCSystemMessage) Reset added in v1.4.0

func (x *SCSystemMessage) Reset()

func (*SCSystemMessage) String added in v1.4.0

func (x *SCSystemMessage) String() string

func (*SCSystemMessage) Validate added in v1.4.0

func (m *SCSystemMessage) Validate() error

Validate checks the field values on SCSystemMessage with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type SCSystemMessageValidationError added in v1.4.0

type SCSystemMessageValidationError struct {
	// contains filtered or unexported fields
}

SCSystemMessageValidationError is the validation error returned by SCSystemMessage.Validate if the designated constraints aren't met.

func (SCSystemMessageValidationError) Cause added in v1.4.0

Cause function returns cause value.

func (SCSystemMessageValidationError) Error added in v1.4.0

Error satisfies the builtin error interface

func (SCSystemMessageValidationError) ErrorName added in v1.4.0

func (e SCSystemMessageValidationError) ErrorName() string

ErrorName returns error name.

func (SCSystemMessageValidationError) Field added in v1.4.0

Field function returns field value.

func (SCSystemMessageValidationError) Key added in v1.4.0

Key function returns key value.

func (SCSystemMessageValidationError) Reason added in v1.4.0

Reason function returns reason value.

Jump to

Keyboard shortcuts

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