nsq

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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NsqCommand_name = map[int32]string{
		0:    "None",
		1:    "KickOutPlayer",
		2:    "GmAddItem",
		3:    "ServerRestartNotice",
		4:    "BanUser",
		5:    "ReloadConfigs",
		6:    "SetMaxOnlineCount",
		7:    "LimitUserAction",
		8:    "SystemClose",
		1001: "Friend_Request",
		1002: "Friend_Accept",
		1003: "Friend_REFUSE",
		1004: "Friend_DELETE",
		1005: "Friend_REFUSE_CD",
		1101: "MailSend",
		1102: "DeleteMail",
	}
	NsqCommand_value = map[string]int32{
		"None":                0,
		"KickOutPlayer":       1,
		"GmAddItem":           2,
		"ServerRestartNotice": 3,
		"BanUser":             4,
		"ReloadConfigs":       5,
		"SetMaxOnlineCount":   6,
		"LimitUserAction":     7,
		"SystemClose":         8,
		"Friend_Request":      1001,
		"Friend_Accept":       1002,
		"Friend_REFUSE":       1003,
		"Friend_DELETE":       1004,
		"Friend_REFUSE_CD":    1005,
		"MailSend":            1101,
		"DeleteMail":          1102,
	}
)

Enum value maps for NsqCommand.

Functions

This section is empty.

Types

type BanUserInfo added in v1.2.7

type BanUserInfo struct {
	UserID     uint64                   `protobuf:"varint,1,opt,name=userID,proto3" json:"userID,omitempty"`
	KickReason server_common.KickReason `protobuf:"varint,2,opt,name=kickReason,proto3,enum=ServerCommon.KickReason" json:"kickReason,omitempty"`
	Reason     string                   `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
	SerId      string                   `protobuf:"bytes,4,opt,name=serId,proto3" json:"serId,omitempty"` // 非0 表示此服务器玩家不踢
	// contains filtered or unexported fields
}

func (*BanUserInfo) Descriptor deprecated added in v1.2.7

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

Deprecated: Use BanUserInfo.ProtoReflect.Descriptor instead.

func (*BanUserInfo) GetKickReason added in v1.2.7

func (x *BanUserInfo) GetKickReason() server_common.KickReason

func (*BanUserInfo) GetReason added in v1.2.7

func (x *BanUserInfo) GetReason() string

func (*BanUserInfo) GetSerId added in v1.2.7

func (x *BanUserInfo) GetSerId() string

func (*BanUserInfo) GetUserID added in v1.2.7

func (x *BanUserInfo) GetUserID() uint64

func (*BanUserInfo) ProtoMessage added in v1.2.7

func (*BanUserInfo) ProtoMessage()

func (*BanUserInfo) ProtoReflect added in v1.2.7

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

func (*BanUserInfo) Reset added in v1.2.7

func (x *BanUserInfo) Reset()

func (*BanUserInfo) String added in v1.2.7

func (x *BanUserInfo) String() string

func (*BanUserInfo) Validate added in v1.2.7

func (m *BanUserInfo) Validate() error

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

type BanUserInfoValidationError added in v1.2.7

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

BanUserInfoValidationError is the validation error returned by BanUserInfo.Validate if the designated constraints aren't met.

func (BanUserInfoValidationError) Cause added in v1.2.7

Cause function returns cause value.

func (BanUserInfoValidationError) Error added in v1.2.7

Error satisfies the builtin error interface

func (BanUserInfoValidationError) ErrorName added in v1.2.7

func (e BanUserInfoValidationError) ErrorName() string

ErrorName returns error name.

func (BanUserInfoValidationError) Field added in v1.2.7

Field function returns field value.

func (BanUserInfoValidationError) Key added in v1.2.7

Key function returns key value.

func (BanUserInfoValidationError) Reason added in v1.2.7

Reason function returns reason value.

type CloseGameSystem added in v1.2.7

type CloseGameSystem struct {
	SysID uint32 `protobuf:"varint,1,opt,name=sysID,proto3" json:"sysID,omitempty"`
	Close bool   `protobuf:"varint,2,opt,name=close,proto3" json:"close,omitempty"`
	// contains filtered or unexported fields
}

func (*CloseGameSystem) Descriptor deprecated added in v1.2.7

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

Deprecated: Use CloseGameSystem.ProtoReflect.Descriptor instead.

func (*CloseGameSystem) GetClose added in v1.2.7

func (x *CloseGameSystem) GetClose() bool

func (*CloseGameSystem) GetSysID added in v1.2.7

func (x *CloseGameSystem) GetSysID() uint32

func (*CloseGameSystem) ProtoMessage added in v1.2.7

func (*CloseGameSystem) ProtoMessage()

func (*CloseGameSystem) ProtoReflect added in v1.2.7

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

func (*CloseGameSystem) Reset added in v1.2.7

func (x *CloseGameSystem) Reset()

func (*CloseGameSystem) String added in v1.2.7

func (x *CloseGameSystem) String() string

func (*CloseGameSystem) Validate added in v1.2.7

func (m *CloseGameSystem) Validate() error

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

type CloseGameSystemValidationError added in v1.2.7

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

CloseGameSystemValidationError is the validation error returned by CloseGameSystem.Validate if the designated constraints aren't met.

func (CloseGameSystemValidationError) Cause added in v1.2.7

Cause function returns cause value.

func (CloseGameSystemValidationError) Error added in v1.2.7

Error satisfies the builtin error interface

func (CloseGameSystemValidationError) ErrorName added in v1.2.7

func (e CloseGameSystemValidationError) ErrorName() string

ErrorName returns error name.

func (CloseGameSystemValidationError) Field added in v1.2.7

Field function returns field value.

func (CloseGameSystemValidationError) Key added in v1.2.7

Key function returns key value.

func (CloseGameSystemValidationError) Reason added in v1.2.7

Reason function returns reason value.

type ComplexMessage

type ComplexMessage struct {
	Cmd  NsqCommand `protobuf:"varint,1,opt,name=cmd,proto3,enum=nsq.NsqCommand" json:"cmd,omitempty"`
	Data []byte     `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	Time int64      `protobuf:"varint,3,opt,name=time,proto3" json:"time,omitempty"`
	// contains filtered or unexported fields
}

func (*ComplexMessage) Descriptor deprecated

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

Deprecated: Use ComplexMessage.ProtoReflect.Descriptor instead.

func (*ComplexMessage) GetCmd

func (x *ComplexMessage) GetCmd() NsqCommand

func (*ComplexMessage) GetData

func (x *ComplexMessage) GetData() []byte

func (*ComplexMessage) GetTime

func (x *ComplexMessage) GetTime() int64

func (*ComplexMessage) ProtoMessage

func (*ComplexMessage) ProtoMessage()

func (*ComplexMessage) ProtoReflect

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

func (*ComplexMessage) Reset

func (x *ComplexMessage) Reset()

func (*ComplexMessage) String

func (x *ComplexMessage) String() string

func (*ComplexMessage) Validate

func (m *ComplexMessage) Validate() error

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

type ComplexMessageValidationError

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

ComplexMessageValidationError is the validation error returned by ComplexMessage.Validate if the designated constraints aren't met.

func (ComplexMessageValidationError) Cause

Cause function returns cause value.

func (ComplexMessageValidationError) Error

Error satisfies the builtin error interface

func (ComplexMessageValidationError) ErrorName

func (e ComplexMessageValidationError) ErrorName() string

ErrorName returns error name.

func (ComplexMessageValidationError) Field

Field function returns field value.

func (ComplexMessageValidationError) Key

Key function returns key value.

func (ComplexMessageValidationError) Reason

Reason function returns reason value.

type FriendMessage

type FriendMessage struct {
	Sender   uint64     `protobuf:"varint,1,opt,name=sender,proto3" json:"sender,omitempty"`
	Receiver uint64     `protobuf:"varint,2,opt,name=receiver,proto3" json:"receiver,omitempty"`
	Cmd      NsqCommand `protobuf:"varint,3,opt,name=cmd,proto3,enum=nsq.NsqCommand" json:"cmd,omitempty"`
	// contains filtered or unexported fields
}

func (*FriendMessage) Descriptor deprecated

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

Deprecated: Use FriendMessage.ProtoReflect.Descriptor instead.

func (*FriendMessage) GetCmd

func (x *FriendMessage) GetCmd() NsqCommand

func (*FriendMessage) GetReceiver

func (x *FriendMessage) GetReceiver() uint64

func (*FriendMessage) GetSender

func (x *FriendMessage) GetSender() uint64

func (*FriendMessage) ProtoMessage

func (*FriendMessage) ProtoMessage()

func (*FriendMessage) ProtoReflect

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

func (*FriendMessage) Reset

func (x *FriendMessage) Reset()

func (*FriendMessage) String

func (x *FriendMessage) String() string

func (*FriendMessage) Validate

func (m *FriendMessage) Validate() error

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

type FriendMessageValidationError

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

FriendMessageValidationError is the validation error returned by FriendMessage.Validate if the designated constraints aren't met.

func (FriendMessageValidationError) Cause

Cause function returns cause value.

func (FriendMessageValidationError) Error

Error satisfies the builtin error interface

func (FriendMessageValidationError) ErrorName

func (e FriendMessageValidationError) ErrorName() string

ErrorName returns error name.

func (FriendMessageValidationError) Field

Field function returns field value.

func (FriendMessageValidationError) Key

Key function returns key value.

func (FriendMessageValidationError) Reason

Reason function returns reason value.

type LimitUser added in v1.2.7

type LimitUser struct {
	UserID uint64                     `protobuf:"varint,1,opt,name=userID,proto3" json:"userID,omitempty"`
	Infos  []*server_common.LimitInfo `protobuf:"bytes,2,rep,name=infos,proto3" json:"infos,omitempty"`
	// contains filtered or unexported fields
}

func (*LimitUser) Descriptor deprecated added in v1.2.7

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

Deprecated: Use LimitUser.ProtoReflect.Descriptor instead.

func (*LimitUser) GetInfos added in v1.2.7

func (x *LimitUser) GetInfos() []*server_common.LimitInfo

func (*LimitUser) GetUserID added in v1.2.7

func (x *LimitUser) GetUserID() uint64

func (*LimitUser) ProtoMessage added in v1.2.7

func (*LimitUser) ProtoMessage()

func (*LimitUser) ProtoReflect added in v1.2.7

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

func (*LimitUser) Reset added in v1.2.7

func (x *LimitUser) Reset()

func (*LimitUser) String added in v1.2.7

func (x *LimitUser) String() string

func (*LimitUser) Validate added in v1.2.7

func (m *LimitUser) Validate() error

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

type LimitUserValidationError added in v1.2.7

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

LimitUserValidationError is the validation error returned by LimitUser.Validate if the designated constraints aren't met.

func (LimitUserValidationError) Cause added in v1.2.7

func (e LimitUserValidationError) Cause() error

Cause function returns cause value.

func (LimitUserValidationError) Error added in v1.2.7

func (e LimitUserValidationError) Error() string

Error satisfies the builtin error interface

func (LimitUserValidationError) ErrorName added in v1.2.7

func (e LimitUserValidationError) ErrorName() string

ErrorName returns error name.

func (LimitUserValidationError) Field added in v1.2.7

func (e LimitUserValidationError) Field() string

Field function returns field value.

func (LimitUserValidationError) Key added in v1.2.7

Key function returns key value.

func (LimitUserValidationError) Reason added in v1.2.7

func (e LimitUserValidationError) Reason() string

Reason function returns reason value.

type NsqCommand

type NsqCommand int32
const (
	NsqCommand_None                NsqCommand = 0
	NsqCommand_KickOutPlayer       NsqCommand = 1
	NsqCommand_GmAddItem           NsqCommand = 2
	NsqCommand_ServerRestartNotice NsqCommand = 3
	NsqCommand_BanUser             NsqCommand = 4
	NsqCommand_ReloadConfigs       NsqCommand = 5
	NsqCommand_SetMaxOnlineCount   NsqCommand = 6
	NsqCommand_LimitUserAction     NsqCommand = 7
	NsqCommand_SystemClose         NsqCommand = 8
	//friend
	NsqCommand_Friend_Request   NsqCommand = 1001
	NsqCommand_Friend_Accept    NsqCommand = 1002
	NsqCommand_Friend_REFUSE    NsqCommand = 1003 // 拒绝
	NsqCommand_Friend_DELETE    NsqCommand = 1004 // 删除
	NsqCommand_Friend_REFUSE_CD NsqCommand = 1005
	//mail
	NsqCommand_MailSend   NsqCommand = 1101
	NsqCommand_DeleteMail NsqCommand = 1102
)

func (NsqCommand) Descriptor

func (NsqCommand) Descriptor() protoreflect.EnumDescriptor

func (NsqCommand) Enum

func (x NsqCommand) Enum() *NsqCommand

func (NsqCommand) EnumDescriptor deprecated

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

Deprecated: Use NsqCommand.Descriptor instead.

func (NsqCommand) Number

func (x NsqCommand) Number() protoreflect.EnumNumber

func (NsqCommand) String

func (x NsqCommand) String() string

func (NsqCommand) Type

type ReloadConfig added in v1.2.7

type ReloadConfig struct {
	Target   string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
	ServerID string `protobuf:"bytes,2,opt,name=serverID,proto3" json:"serverID,omitempty"`
	FileName string `protobuf:"bytes,3,opt,name=fileName,proto3" json:"fileName,omitempty"`
	SendTime int64  `protobuf:"varint,4,opt,name=sendTime,proto3" json:"sendTime,omitempty"`
	// contains filtered or unexported fields
}

func (*ReloadConfig) Descriptor deprecated added in v1.2.7

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

Deprecated: Use ReloadConfig.ProtoReflect.Descriptor instead.

func (*ReloadConfig) GetFileName added in v1.2.7

func (x *ReloadConfig) GetFileName() string

func (*ReloadConfig) GetSendTime added in v1.2.7

func (x *ReloadConfig) GetSendTime() int64

func (*ReloadConfig) GetServerID added in v1.2.7

func (x *ReloadConfig) GetServerID() string

func (*ReloadConfig) GetTarget added in v1.2.7

func (x *ReloadConfig) GetTarget() string

func (*ReloadConfig) ProtoMessage added in v1.2.7

func (*ReloadConfig) ProtoMessage()

func (*ReloadConfig) ProtoReflect added in v1.2.7

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

func (*ReloadConfig) Reset added in v1.2.7

func (x *ReloadConfig) Reset()

func (*ReloadConfig) String added in v1.2.7

func (x *ReloadConfig) String() string

func (*ReloadConfig) Validate added in v1.2.7

func (m *ReloadConfig) Validate() error

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

type ReloadConfigValidationError added in v1.2.7

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

ReloadConfigValidationError is the validation error returned by ReloadConfig.Validate if the designated constraints aren't met.

func (ReloadConfigValidationError) Cause added in v1.2.7

Cause function returns cause value.

func (ReloadConfigValidationError) Error added in v1.2.7

Error satisfies the builtin error interface

func (ReloadConfigValidationError) ErrorName added in v1.2.7

func (e ReloadConfigValidationError) ErrorName() string

ErrorName returns error name.

func (ReloadConfigValidationError) Field added in v1.2.7

Field function returns field value.

func (ReloadConfigValidationError) Key added in v1.2.7

Key function returns key value.

func (ReloadConfigValidationError) Reason added in v1.2.7

Reason function returns reason value.

type SetLogLevel added in v1.2.7

type SetLogLevel struct {
	Level uint32 `protobuf:"varint,1,opt,name=level,proto3" json:"level,omitempty"`
	// contains filtered or unexported fields
}

func (*SetLogLevel) Descriptor deprecated added in v1.2.7

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

Deprecated: Use SetLogLevel.ProtoReflect.Descriptor instead.

func (*SetLogLevel) GetLevel added in v1.2.7

func (x *SetLogLevel) GetLevel() uint32

func (*SetLogLevel) ProtoMessage added in v1.2.7

func (*SetLogLevel) ProtoMessage()

func (*SetLogLevel) ProtoReflect added in v1.2.7

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

func (*SetLogLevel) Reset added in v1.2.7

func (x *SetLogLevel) Reset()

func (*SetLogLevel) String added in v1.2.7

func (x *SetLogLevel) String() string

func (*SetLogLevel) Validate added in v1.2.7

func (m *SetLogLevel) Validate() error

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

type SetLogLevelValidationError added in v1.2.7

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

SetLogLevelValidationError is the validation error returned by SetLogLevel.Validate if the designated constraints aren't met.

func (SetLogLevelValidationError) Cause added in v1.2.7

Cause function returns cause value.

func (SetLogLevelValidationError) Error added in v1.2.7

Error satisfies the builtin error interface

func (SetLogLevelValidationError) ErrorName added in v1.2.7

func (e SetLogLevelValidationError) ErrorName() string

ErrorName returns error name.

func (SetLogLevelValidationError) Field added in v1.2.7

Field function returns field value.

func (SetLogLevelValidationError) Key added in v1.2.7

Key function returns key value.

func (SetLogLevelValidationError) Reason added in v1.2.7

Reason function returns reason value.

type SetMaxPlayerNum added in v1.2.7

type SetMaxPlayerNum struct {
	MaxPlayerNum int32 `protobuf:"varint,1,opt,name=maxPlayerNum,proto3" json:"maxPlayerNum,omitempty"`
	// contains filtered or unexported fields
}

func (*SetMaxPlayerNum) Descriptor deprecated added in v1.2.7

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

Deprecated: Use SetMaxPlayerNum.ProtoReflect.Descriptor instead.

func (*SetMaxPlayerNum) GetMaxPlayerNum added in v1.2.7

func (x *SetMaxPlayerNum) GetMaxPlayerNum() int32

func (*SetMaxPlayerNum) ProtoMessage added in v1.2.7

func (*SetMaxPlayerNum) ProtoMessage()

func (*SetMaxPlayerNum) ProtoReflect added in v1.2.7

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

func (*SetMaxPlayerNum) Reset added in v1.2.7

func (x *SetMaxPlayerNum) Reset()

func (*SetMaxPlayerNum) String added in v1.2.7

func (x *SetMaxPlayerNum) String() string

func (*SetMaxPlayerNum) Validate added in v1.2.7

func (m *SetMaxPlayerNum) Validate() error

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

type SetMaxPlayerNumValidationError added in v1.2.7

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

SetMaxPlayerNumValidationError is the validation error returned by SetMaxPlayerNum.Validate if the designated constraints aren't met.

func (SetMaxPlayerNumValidationError) Cause added in v1.2.7

Cause function returns cause value.

func (SetMaxPlayerNumValidationError) Error added in v1.2.7

Error satisfies the builtin error interface

func (SetMaxPlayerNumValidationError) ErrorName added in v1.2.7

func (e SetMaxPlayerNumValidationError) ErrorName() string

ErrorName returns error name.

func (SetMaxPlayerNumValidationError) Field added in v1.2.7

Field function returns field value.

func (SetMaxPlayerNumValidationError) Key added in v1.2.7

Key function returns key value.

func (SetMaxPlayerNumValidationError) Reason added in v1.2.7

Reason function returns reason value.

Jump to

Keyboard shortcuts

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