chat

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 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"`              // 区服ID
	MessageType  uint32        `protobuf:"varint,8,opt,name=messageType,proto3" json:"messageType,omitempty"`    // 消息类型: 0 本区消息  1 跨区消息(世界聊天)  2 跨服消息(指定服范围)
	ProcIndex    uint32        `protobuf:"varint,9,opt,name=procIndex,proto3" json:"procIndex,omitempty"`        // 发送消息的玩家所在的 服进程id
	RangeOfSrv   uint32        `protobuf:"varint,10,opt,name=rangeOfSrv,proto3" json:"rangeOfSrv,omitempty"`     // 指定的跨服区间, 配表指定的。  rangeOfSrv = 5 表示  procIndex 为 1~5 的玩家 发送的跨服消息,只会广播给 所有的 1~5 服玩家
	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.

Jump to

Keyboard shortcuts

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