chat

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 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 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.

Jump to

Keyboard shortcuts

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