ss

package
v0.0.0-...-0e6f1c7 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAX_SS_MSG_SIZE = (200 * 1024) //200k
)

Variables

View Source
var (
	DISP_MSG_TARGET_name = map[int32]string{
		0: "NON_SERVER",
		1: "LOGIC_SERVER",
		2: "CHAT_SERVER",
	}
	DISP_MSG_TARGET_value = map[string]int32{
		"NON_SERVER":   0,
		"LOGIC_SERVER": 1,
		"CHAT_SERVER":  2,
	}
)

Enum value maps for DISP_MSG_TARGET.

View Source
var (
	DISP_MSG_METHOD_name = map[int32]string{
		0: "RAND",
		1: "HASH",
		2: "SPEC",
	}
	DISP_MSG_METHOD_value = map[string]int32{
		"RAND": 0,
		"HASH": 1,
		"SPEC": 2,
	}
)

Enum value maps for DISP_MSG_METHOD.

View Source
var (
	DISP_PROTO_TYPE_name = map[int32]string{
		0: "HELLO",
		1: "KICK_DUPLICATE_USER",
	}
	DISP_PROTO_TYPE_value = map[string]int32{
		"HELLO":               0,
		"KICK_DUPLICATE_USER": 1,
	}
)

Enum value maps for DISP_PROTO_TYPE.

View Source
var (
	SS_PROTO_TYPE_name = map[int32]string{
		0:  "HEART_BEAT_REQ",
		1:  "HEART_BEAT_RSP",
		2:  "PING_REQ",
		3:  "PING_RSP",
		4:  "LOGIN_REQ",
		5:  "LOGIN_RSP",
		6:  "LOGOUT_REQ",
		7:  "LOGOUT_RSP",
		8:  "REG_REQ",
		9:  "REG_RSP",
		10: "USE_DISP_PROTO",
	}
	SS_PROTO_TYPE_value = map[string]int32{
		"HEART_BEAT_REQ": 0,
		"HEART_BEAT_RSP": 1,
		"PING_REQ":       2,
		"PING_RSP":       3,
		"LOGIN_REQ":      4,
		"LOGIN_RSP":      5,
		"LOGOUT_REQ":     6,
		"LOGOUT_RSP":     7,
		"REG_REQ":        8,
		"REG_RSP":        9,
		"USE_DISP_PROTO": 10,
	}
)

Enum value maps for SS_PROTO_TYPE.

View Source
var (
	SS_COMMON_RESULT_name = map[int32]string{
		0: "SUCCESS",
		1: "FAILED",
	}
	SS_COMMON_RESULT_value = map[string]int32{
		"SUCCESS": 0,
		"FAILED":  1,
	}
)

Enum value maps for SS_COMMON_RESULT.

View Source
var (
	USER_LOGIN_RET_name = map[int32]string{
		0: "LOGIN_SUCCESS",
		1: "LOGIN_EMPTY",
		2: "LOGIN_PASS",
		3: "LOGIN_ERR",
		4: "LOGIN_MULTI_ON",
	}
	USER_LOGIN_RET_value = map[string]int32{
		"LOGIN_SUCCESS":  0,
		"LOGIN_EMPTY":    1,
		"LOGIN_PASS":     2,
		"LOGIN_ERR":      3,
		"LOGIN_MULTI_ON": 4,
	}
)

Enum value maps for USER_LOGIN_RET.

View Source
var (
	USER_LOGOUT_REASON_name = map[int32]string{
		0: "LOGOUT_CLIENT_EXIT",
		1: "LOGOUT_CONN_CLOSED",
		2: "LOGOUT_SERVER_KICK_RECONN",
		3: "LOGOUT_SERVER_KICK_BAN",
		4: "LOGOUT_CLIENT_TIMEOUT",
		5: "LOGOUT_OFFLINE_USER",
		6: "LOGOUT_SERVER_SHUT",
	}
	USER_LOGOUT_REASON_value = map[string]int32{
		"LOGOUT_CLIENT_EXIT":        0,
		"LOGOUT_CONN_CLOSED":        1,
		"LOGOUT_SERVER_KICK_RECONN": 2,
		"LOGOUT_SERVER_KICK_BAN":    3,
		"LOGOUT_CLIENT_TIMEOUT":     4,
		"LOGOUT_OFFLINE_USER":       5,
		"LOGOUT_SERVER_SHUT":        6,
	}
)

Enum value maps for USER_LOGOUT_REASON.

View Source
var (
	REG_RESULT_name = map[int32]string{
		0: "REG_SUCCESS",
		1: "REG_DUP_NAME",
		2: "REG_DB_ERR",
	}
	REG_RESULT_value = map[string]int32{
		"REG_SUCCESS":  0,
		"REG_DUP_NAME": 1,
		"REG_DB_ERR":   2,
	}
)

Enum value maps for REG_RESULT.

View Source
var File_user_info_proto protoreflect.FileDescriptor

Functions

func Pack

func Pack(i interface{}) ([]byte, error)

func UnPack

func UnPack(b []byte, i interface{}) error

Types

type DISP_MSG_METHOD

type DISP_MSG_METHOD int32

Choose Target Server Method

const (
	DISP_MSG_METHOD_RAND DISP_MSG_METHOD = 0
	DISP_MSG_METHOD_HASH DISP_MSG_METHOD = 1
	DISP_MSG_METHOD_SPEC DISP_MSG_METHOD = 2 //sepcify target
)

func (DISP_MSG_METHOD) Descriptor

func (DISP_MSG_METHOD) Enum

func (x DISP_MSG_METHOD) Enum() *DISP_MSG_METHOD

func (DISP_MSG_METHOD) EnumDescriptor deprecated

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

Deprecated: Use DISP_MSG_METHOD.Descriptor instead.

func (DISP_MSG_METHOD) Number

func (DISP_MSG_METHOD) String

func (x DISP_MSG_METHOD) String() string

func (DISP_MSG_METHOD) Type

type DISP_MSG_TARGET

type DISP_MSG_TARGET int32

Target Server Type

const (
	DISP_MSG_TARGET_NON_SERVER   DISP_MSG_TARGET = 0 //no target type specified
	DISP_MSG_TARGET_LOGIC_SERVER DISP_MSG_TARGET = 1
	DISP_MSG_TARGET_CHAT_SERVER  DISP_MSG_TARGET = 2 //not use just demonize etc.
)

func (DISP_MSG_TARGET) Descriptor

func (DISP_MSG_TARGET) Enum

func (x DISP_MSG_TARGET) Enum() *DISP_MSG_TARGET

func (DISP_MSG_TARGET) EnumDescriptor deprecated

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

Deprecated: Use DISP_MSG_TARGET.Descriptor instead.

func (DISP_MSG_TARGET) Number

func (DISP_MSG_TARGET) String

func (x DISP_MSG_TARGET) String() string

func (DISP_MSG_TARGET) Type

type DISP_PROTO_TYPE

type DISP_PROTO_TYPE int32

Disp Proto <serv1 -- disp -- serv2> Add Proto Should also modify servers/comm/disp.go:GenDispMsg and ExDispMsg functions

const (
	DISP_PROTO_TYPE_HELLO               DISP_PROTO_TYPE = 0
	DISP_PROTO_TYPE_KICK_DUPLICATE_USER DISP_PROTO_TYPE = 1 //kick duplicate user on other line
)

func (DISP_PROTO_TYPE) Descriptor

func (DISP_PROTO_TYPE) Enum

func (x DISP_PROTO_TYPE) Enum() *DISP_PROTO_TYPE

func (DISP_PROTO_TYPE) EnumDescriptor deprecated

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

Deprecated: Use DISP_PROTO_TYPE.Descriptor instead.

func (DISP_PROTO_TYPE) Number

func (DISP_PROTO_TYPE) String

func (x DISP_PROTO_TYPE) String() string

func (DISP_PROTO_TYPE) Type

type Item

type Item struct {
	Resid  int32 `protobuf:"varint,1,opt,name=resid,proto3" json:"resid,omitempty"`
	Instid int64 `protobuf:"varint,2,opt,name=instid,proto3" json:"instid,omitempty"`
	Count  int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
	Attr   int64 `protobuf:"varint,20,opt,name=attr,proto3" json:"attr,omitempty"`
	// contains filtered or unexported fields
}

func (*Item) Descriptor deprecated

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

Deprecated: Use Item.ProtoReflect.Descriptor instead.

func (*Item) GetAttr

func (x *Item) GetAttr() int64

func (*Item) GetCount

func (x *Item) GetCount() int32

func (*Item) GetInstid

func (x *Item) GetInstid() int64

func (*Item) GetResid

func (x *Item) GetResid() int32

func (*Item) ProtoMessage

func (*Item) ProtoMessage()

func (*Item) ProtoReflect

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

func (*Item) Reset

func (x *Item) Reset()

func (*Item) String

func (x *Item) String() string

type MsgDisp

type MsgDisp struct {
	ProtoType  DISP_PROTO_TYPE `protobuf:"varint,1,opt,name=proto_type,json=protoType,proto3,enum=ss.DISP_PROTO_TYPE" json:"proto_type,omitempty"`
	Target     DISP_MSG_TARGET `protobuf:"varint,2,opt,name=target,proto3,enum=ss.DISP_MSG_TARGET" json:"target,omitempty"`
	Method     DISP_MSG_METHOD `protobuf:"varint,3,opt,name=method,proto3,enum=ss.DISP_MSG_METHOD" json:"method,omitempty"`
	SpecServer int32           `protobuf:"varint,4,opt,name=spec_server,json=specServer,proto3" json:"spec_server,omitempty"` //only for METHOD_SPEC
	FromServer int32           `protobuf:"varint,5,opt,name=from_server,json=fromServer,proto3" json:"from_server,omitempty"`
	HashV      int64           `protobuf:"varint,6,opt,name=hash_v,json=hashV,proto3" json:"hash_v,omitempty"` //only for METHOD_HASH
	// Types that are assignable to DispBody:
	//	*MsgDisp_Hello
	//	*MsgDisp_KickDupUser
	DispBody isMsgDisp_DispBody `protobuf_oneof:"disp_body"`
	// contains filtered or unexported fields
}

DispMsg

func (*MsgDisp) Descriptor deprecated

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

Deprecated: Use MsgDisp.ProtoReflect.Descriptor instead.

func (*MsgDisp) GetDispBody

func (m *MsgDisp) GetDispBody() isMsgDisp_DispBody

func (*MsgDisp) GetFromServer

func (x *MsgDisp) GetFromServer() int32

func (*MsgDisp) GetHashV

func (x *MsgDisp) GetHashV() int64

func (*MsgDisp) GetHello

func (x *MsgDisp) GetHello() *MsgDispHello

func (*MsgDisp) GetKickDupUser

func (x *MsgDisp) GetKickDupUser() *MsgDispKickDupUser

func (*MsgDisp) GetMethod

func (x *MsgDisp) GetMethod() DISP_MSG_METHOD

func (*MsgDisp) GetProtoType

func (x *MsgDisp) GetProtoType() DISP_PROTO_TYPE

func (*MsgDisp) GetSpecServer

func (x *MsgDisp) GetSpecServer() int32

func (*MsgDisp) GetTarget

func (x *MsgDisp) GetTarget() DISP_MSG_TARGET

func (*MsgDisp) ProtoMessage

func (*MsgDisp) ProtoMessage()

func (*MsgDisp) ProtoReflect

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

func (*MsgDisp) Reset

func (x *MsgDisp) Reset()

func (*MsgDisp) String

func (x *MsgDisp) String() string

type MsgDispHello

type MsgDispHello struct {
	Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

*********DISP SUB MSG************

func (*MsgDispHello) Descriptor deprecated

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

Deprecated: Use MsgDispHello.ProtoReflect.Descriptor instead.

func (*MsgDispHello) GetContent

func (x *MsgDispHello) GetContent() string

func (*MsgDispHello) ProtoMessage

func (*MsgDispHello) ProtoMessage()

func (*MsgDispHello) ProtoReflect

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

func (*MsgDispHello) Reset

func (x *MsgDispHello) Reset()

func (*MsgDispHello) String

func (x *MsgDispHello) String() string

type MsgDispKickDupUser

type MsgDispKickDupUser struct {
	TargetUid int64 `protobuf:"varint,1,opt,name=target_uid,json=targetUid,proto3" json:"target_uid,omitempty"` //target uid
	// contains filtered or unexported fields
}

func (*MsgDispKickDupUser) Descriptor deprecated

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

Deprecated: Use MsgDispKickDupUser.ProtoReflect.Descriptor instead.

func (*MsgDispKickDupUser) GetTargetUid

func (x *MsgDispKickDupUser) GetTargetUid() int64

func (*MsgDispKickDupUser) ProtoMessage

func (*MsgDispKickDupUser) ProtoMessage()

func (*MsgDispKickDupUser) ProtoReflect

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

func (*MsgDispKickDupUser) Reset

func (x *MsgDispKickDupUser) Reset()

func (*MsgDispKickDupUser) String

func (x *MsgDispKickDupUser) String() string

type MsgDisp_Hello

type MsgDisp_Hello struct {
	Hello *MsgDispHello `protobuf:"bytes,20,opt,name=hello,proto3,oneof"`
}

type MsgDisp_KickDupUser

type MsgDisp_KickDupUser struct {
	KickDupUser *MsgDispKickDupUser `protobuf:"bytes,21,opt,name=kick_dup_user,json=kickDupUser,proto3,oneof"`
}

type MsgHeartBeatReq

type MsgHeartBeatReq struct {
	Ts int64 `protobuf:"varint,1,opt,name=ts,proto3" json:"ts,omitempty"`
	// contains filtered or unexported fields
}

heartbeat

func (*MsgHeartBeatReq) Descriptor deprecated

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

Deprecated: Use MsgHeartBeatReq.ProtoReflect.Descriptor instead.

func (*MsgHeartBeatReq) GetTs

func (x *MsgHeartBeatReq) GetTs() int64

func (*MsgHeartBeatReq) ProtoMessage

func (*MsgHeartBeatReq) ProtoMessage()

func (*MsgHeartBeatReq) ProtoReflect

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

func (*MsgHeartBeatReq) Reset

func (x *MsgHeartBeatReq) Reset()

func (*MsgHeartBeatReq) String

func (x *MsgHeartBeatReq) String() string

type MsgLoginReq

type MsgLoginReq struct {
	CKey    int64  `protobuf:"varint,20,opt,name=c_key,json=cKey,proto3" json:"c_key,omitempty"`
	Uid     int64  `protobuf:"varint,21,opt,name=uid,proto3" json:"uid,omitempty"`  //0 use default role
	Name    string `protobuf:"bytes,22,opt,name=name,proto3" json:"name,omitempty"` //acc name
	Pass    string `protobuf:"bytes,23,opt,name=pass,proto3" json:"pass,omitempty"`
	Device  string `protobuf:"bytes,24,opt,name=device,proto3" json:"device,omitempty"`
	Version string `protobuf:"bytes,25,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

login

func (*MsgLoginReq) Descriptor deprecated

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

Deprecated: Use MsgLoginReq.ProtoReflect.Descriptor instead.

func (*MsgLoginReq) GetCKey

func (x *MsgLoginReq) GetCKey() int64

func (*MsgLoginReq) GetDevice

func (x *MsgLoginReq) GetDevice() string

func (*MsgLoginReq) GetName

func (x *MsgLoginReq) GetName() string

func (*MsgLoginReq) GetPass

func (x *MsgLoginReq) GetPass() string

func (*MsgLoginReq) GetUid

func (x *MsgLoginReq) GetUid() int64

func (*MsgLoginReq) GetVersion

func (x *MsgLoginReq) GetVersion() string

func (*MsgLoginReq) ProtoMessage

func (*MsgLoginReq) ProtoMessage()

func (*MsgLoginReq) ProtoReflect

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

func (*MsgLoginReq) Reset

func (x *MsgLoginReq) Reset()

func (*MsgLoginReq) String

func (x *MsgLoginReq) String() string

type MsgLoginRsp

type MsgLoginRsp struct {
	Result      USER_LOGIN_RET `protobuf:"varint,1,opt,name=result,proto3,enum=ss.USER_LOGIN_RET" json:"result,omitempty"`
	CKey        int64          `protobuf:"varint,2,opt,name=c_key,json=cKey,proto3" json:"c_key,omitempty"`
	Name        string         `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` //account name
	Uid         int64          `protobuf:"varint,4,opt,name=uid,proto3" json:"uid,omitempty"`  //may empty
	UserInfo    *UserInfo      `protobuf:"bytes,20,opt,name=user_info,json=userInfo,proto3" json:"user_info,omitempty"`
	OnlineLogic int32          `protobuf:"varint,21,opt,name=online_logic,json=onlineLogic,proto3" json:"online_logic,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgLoginRsp) Descriptor deprecated

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

Deprecated: Use MsgLoginRsp.ProtoReflect.Descriptor instead.

func (*MsgLoginRsp) GetCKey

func (x *MsgLoginRsp) GetCKey() int64

func (*MsgLoginRsp) GetName

func (x *MsgLoginRsp) GetName() string

func (*MsgLoginRsp) GetOnlineLogic

func (x *MsgLoginRsp) GetOnlineLogic() int32

func (*MsgLoginRsp) GetResult

func (x *MsgLoginRsp) GetResult() USER_LOGIN_RET

func (*MsgLoginRsp) GetUid

func (x *MsgLoginRsp) GetUid() int64

func (*MsgLoginRsp) GetUserInfo

func (x *MsgLoginRsp) GetUserInfo() *UserInfo

func (*MsgLoginRsp) ProtoMessage

func (*MsgLoginRsp) ProtoMessage()

func (*MsgLoginRsp) ProtoReflect

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

func (*MsgLoginRsp) Reset

func (x *MsgLoginRsp) Reset()

func (*MsgLoginRsp) String

func (x *MsgLoginRsp) String() string

type MsgLogoutReq

type MsgLogoutReq struct {
	Uid      int64              `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"`
	Reason   USER_LOGOUT_REASON `protobuf:"varint,2,opt,name=reason,proto3,enum=ss.USER_LOGOUT_REASON" json:"reason,omitempty"`
	UserInfo *UserInfo          `protobuf:"bytes,3,opt,name=user_info,json=userInfo,proto3" json:"user_info,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgLogoutReq) Descriptor deprecated

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

Deprecated: Use MsgLogoutReq.ProtoReflect.Descriptor instead.

func (*MsgLogoutReq) GetReason

func (x *MsgLogoutReq) GetReason() USER_LOGOUT_REASON

func (*MsgLogoutReq) GetUid

func (x *MsgLogoutReq) GetUid() int64

func (*MsgLogoutReq) GetUserInfo

func (x *MsgLogoutReq) GetUserInfo() *UserInfo

func (*MsgLogoutReq) ProtoMessage

func (*MsgLogoutReq) ProtoMessage()

func (*MsgLogoutReq) ProtoReflect

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

func (*MsgLogoutReq) Reset

func (x *MsgLogoutReq) Reset()

func (*MsgLogoutReq) String

func (x *MsgLogoutReq) String() string

type MsgLogoutRsp

type MsgLogoutRsp struct {
	Uid    int64              `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"`
	Reason USER_LOGOUT_REASON `protobuf:"varint,2,opt,name=reason,proto3,enum=ss.USER_LOGOUT_REASON" json:"reason,omitempty"`
	Msg    string             `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgLogoutRsp) Descriptor deprecated

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

Deprecated: Use MsgLogoutRsp.ProtoReflect.Descriptor instead.

func (*MsgLogoutRsp) GetMsg

func (x *MsgLogoutRsp) GetMsg() string

func (*MsgLogoutRsp) GetReason

func (x *MsgLogoutRsp) GetReason() USER_LOGOUT_REASON

func (*MsgLogoutRsp) GetUid

func (x *MsgLogoutRsp) GetUid() int64

func (*MsgLogoutRsp) ProtoMessage

func (*MsgLogoutRsp) ProtoMessage()

func (*MsgLogoutRsp) ProtoReflect

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

func (*MsgLogoutRsp) Reset

func (x *MsgLogoutRsp) Reset()

func (*MsgLogoutRsp) String

func (x *MsgLogoutRsp) String() string

type MsgPingReq

type MsgPingReq struct {
	Ts        int64 `protobuf:"varint,1,opt,name=ts,proto3" json:"ts,omitempty"`
	ClientKey int64 `protobuf:"varint,2,opt,name=client_key,json=clientKey,proto3" json:"client_key,omitempty"`
	// contains filtered or unexported fields
}

ping

func (*MsgPingReq) Descriptor deprecated

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

Deprecated: Use MsgPingReq.ProtoReflect.Descriptor instead.

func (*MsgPingReq) GetClientKey

func (x *MsgPingReq) GetClientKey() int64

func (*MsgPingReq) GetTs

func (x *MsgPingReq) GetTs() int64

func (*MsgPingReq) ProtoMessage

func (*MsgPingReq) ProtoMessage()

func (*MsgPingReq) ProtoReflect

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

func (*MsgPingReq) Reset

func (x *MsgPingReq) Reset()

func (*MsgPingReq) String

func (x *MsgPingReq) String() string

type MsgPingRsp

type MsgPingRsp struct {
	Ts        int64 `protobuf:"varint,1,opt,name=ts,proto3" json:"ts,omitempty"`
	ClientKey int64 `protobuf:"varint,2,opt,name=client_key,json=clientKey,proto3" json:"client_key,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgPingRsp) Descriptor deprecated

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

Deprecated: Use MsgPingRsp.ProtoReflect.Descriptor instead.

func (*MsgPingRsp) GetClientKey

func (x *MsgPingRsp) GetClientKey() int64

func (*MsgPingRsp) GetTs

func (x *MsgPingRsp) GetTs() int64

func (*MsgPingRsp) ProtoMessage

func (*MsgPingRsp) ProtoMessage()

func (*MsgPingRsp) ProtoReflect

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

func (*MsgPingRsp) Reset

func (x *MsgPingRsp) Reset()

func (*MsgPingRsp) String

func (x *MsgPingRsp) String() string

type MsgRegReq

type MsgRegReq struct {
	CKey     int64  `protobuf:"varint,20,opt,name=c_key,json=cKey,proto3" json:"c_key,omitempty"`
	Name     string `protobuf:"bytes,21,opt,name=name,proto3" json:"name,omitempty"` //account name
	Pass     string `protobuf:"bytes,22,opt,name=pass,proto3" json:"pass,omitempty"`
	RoleName string `protobuf:"bytes,23,opt,name=role_name,json=roleName,proto3" json:"role_name,omitempty"` //role name
	Sex      bool   `protobuf:"varint,24,opt,name=sex,proto3" json:"sex,omitempty"`
	Addr     string `protobuf:"bytes,25,opt,name=addr,proto3" json:"addr,omitempty"`
	// contains filtered or unexported fields
}

register

func (*MsgRegReq) Descriptor deprecated

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

Deprecated: Use MsgRegReq.ProtoReflect.Descriptor instead.

func (*MsgRegReq) GetAddr

func (x *MsgRegReq) GetAddr() string

func (*MsgRegReq) GetCKey

func (x *MsgRegReq) GetCKey() int64

func (*MsgRegReq) GetName

func (x *MsgRegReq) GetName() string

func (*MsgRegReq) GetPass

func (x *MsgRegReq) GetPass() string

func (*MsgRegReq) GetRoleName

func (x *MsgRegReq) GetRoleName() string

func (*MsgRegReq) GetSex

func (x *MsgRegReq) GetSex() bool

func (*MsgRegReq) ProtoMessage

func (*MsgRegReq) ProtoMessage()

func (*MsgRegReq) ProtoReflect

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

func (*MsgRegReq) Reset

func (x *MsgRegReq) Reset()

func (*MsgRegReq) String

func (x *MsgRegReq) String() string

type MsgRegRsp

type MsgRegRsp struct {
	Result REG_RESULT `protobuf:"varint,1,opt,name=result,proto3,enum=ss.REG_RESULT" json:"result,omitempty"`
	CKey   int64      `protobuf:"varint,2,opt,name=c_key,json=cKey,proto3" json:"c_key,omitempty"`
	Name   string     `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgRegRsp) Descriptor deprecated

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

Deprecated: Use MsgRegRsp.ProtoReflect.Descriptor instead.

func (*MsgRegRsp) GetCKey

func (x *MsgRegRsp) GetCKey() int64

func (*MsgRegRsp) GetName

func (x *MsgRegRsp) GetName() string

func (*MsgRegRsp) GetResult

func (x *MsgRegRsp) GetResult() REG_RESULT

func (*MsgRegRsp) ProtoMessage

func (*MsgRegRsp) ProtoMessage()

func (*MsgRegRsp) ProtoReflect

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

func (*MsgRegRsp) Reset

func (x *MsgRegRsp) Reset()

func (*MsgRegRsp) String

func (x *MsgRegRsp) String() string

type REG_RESULT

type REG_RESULT int32
const (
	REG_RESULT_REG_SUCCESS  REG_RESULT = 0
	REG_RESULT_REG_DUP_NAME REG_RESULT = 1
	REG_RESULT_REG_DB_ERR   REG_RESULT = 2
)

func (REG_RESULT) Descriptor

func (REG_RESULT) Descriptor() protoreflect.EnumDescriptor

func (REG_RESULT) Enum

func (x REG_RESULT) Enum() *REG_RESULT

func (REG_RESULT) EnumDescriptor deprecated

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

Deprecated: Use REG_RESULT.Descriptor instead.

func (REG_RESULT) Number

func (x REG_RESULT) Number() protoreflect.EnumNumber

func (REG_RESULT) String

func (x REG_RESULT) String() string

func (REG_RESULT) Type

type SSMsg

type SSMsg struct {
	ProtoType SS_PROTO_TYPE `protobuf:"varint,1,opt,name=proto_type,json=protoType,proto3,enum=ss.SS_PROTO_TYPE" json:"proto_type,omitempty"`
	// Types that are assignable to MsgBody:
	//	*SSMsg_HeartBeatReq
	//	*SSMsg_PingReq
	//	*SSMsg_PingRsp
	//	*SSMsg_LoginReq
	//	*SSMsg_LoginRsp
	//	*SSMsg_LogoutReq
	//	*SSMsg_LogoutRsp
	//	*SSMsg_RegReq
	//	*SSMsg_RegRsp
	//	*SSMsg_MsgDisp
	MsgBody isSSMsg_MsgBody `protobuf_oneof:"msg_body"`
	// contains filtered or unexported fields
}

main msg

func (*SSMsg) Descriptor deprecated

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

Deprecated: Use SSMsg.ProtoReflect.Descriptor instead.

func (*SSMsg) GetHeartBeatReq

func (x *SSMsg) GetHeartBeatReq() *MsgHeartBeatReq

func (*SSMsg) GetLoginReq

func (x *SSMsg) GetLoginReq() *MsgLoginReq

func (*SSMsg) GetLoginRsp

func (x *SSMsg) GetLoginRsp() *MsgLoginRsp

func (*SSMsg) GetLogoutReq

func (x *SSMsg) GetLogoutReq() *MsgLogoutReq

func (*SSMsg) GetLogoutRsp

func (x *SSMsg) GetLogoutRsp() *MsgLogoutRsp

func (*SSMsg) GetMsgBody

func (m *SSMsg) GetMsgBody() isSSMsg_MsgBody

func (*SSMsg) GetMsgDisp

func (x *SSMsg) GetMsgDisp() *MsgDisp

func (*SSMsg) GetPingReq

func (x *SSMsg) GetPingReq() *MsgPingReq

func (*SSMsg) GetPingRsp

func (x *SSMsg) GetPingRsp() *MsgPingRsp

func (*SSMsg) GetProtoType

func (x *SSMsg) GetProtoType() SS_PROTO_TYPE

func (*SSMsg) GetRegReq

func (x *SSMsg) GetRegReq() *MsgRegReq

func (*SSMsg) GetRegRsp

func (x *SSMsg) GetRegRsp() *MsgRegRsp

func (*SSMsg) ProtoMessage

func (*SSMsg) ProtoMessage()

func (*SSMsg) ProtoReflect

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

func (*SSMsg) Reset

func (x *SSMsg) Reset()

func (*SSMsg) String

func (x *SSMsg) String() string

type SSMsg_HeartBeatReq

type SSMsg_HeartBeatReq struct {
	HeartBeatReq *MsgHeartBeatReq `protobuf:"bytes,20,opt,name=heart_beat_req,json=heartBeatReq,proto3,oneof"`
}

type SSMsg_LoginReq

type SSMsg_LoginReq struct {
	LoginReq *MsgLoginReq `protobuf:"bytes,24,opt,name=login_req,json=loginReq,proto3,oneof"`
}

type SSMsg_LoginRsp

type SSMsg_LoginRsp struct {
	LoginRsp *MsgLoginRsp `protobuf:"bytes,25,opt,name=login_rsp,json=loginRsp,proto3,oneof"`
}

type SSMsg_LogoutReq

type SSMsg_LogoutReq struct {
	LogoutReq *MsgLogoutReq `protobuf:"bytes,26,opt,name=logout_req,json=logoutReq,proto3,oneof"`
}

type SSMsg_LogoutRsp

type SSMsg_LogoutRsp struct {
	LogoutRsp *MsgLogoutRsp `protobuf:"bytes,27,opt,name=logout_rsp,json=logoutRsp,proto3,oneof"`
}

type SSMsg_MsgDisp

type SSMsg_MsgDisp struct {
	MsgDisp *MsgDisp `protobuf:"bytes,30,opt,name=msg_disp,json=msgDisp,proto3,oneof"`
}

type SSMsg_PingReq

type SSMsg_PingReq struct {
	PingReq *MsgPingReq `protobuf:"bytes,22,opt,name=ping_req,json=pingReq,proto3,oneof"`
}

type SSMsg_PingRsp

type SSMsg_PingRsp struct {
	PingRsp *MsgPingRsp `protobuf:"bytes,23,opt,name=ping_rsp,json=pingRsp,proto3,oneof"`
}

type SSMsg_RegReq

type SSMsg_RegReq struct {
	RegReq *MsgRegReq `protobuf:"bytes,28,opt,name=reg_req,json=regReq,proto3,oneof"`
}

type SSMsg_RegRsp

type SSMsg_RegRsp struct {
	RegRsp *MsgRegRsp `protobuf:"bytes,29,opt,name=reg_rsp,json=regRsp,proto3,oneof"`
}

type SS_COMMON_RESULT

type SS_COMMON_RESULT int32
const (
	SS_COMMON_RESULT_SUCCESS SS_COMMON_RESULT = 0
	SS_COMMON_RESULT_FAILED  SS_COMMON_RESULT = 1
)

func (SS_COMMON_RESULT) Descriptor

func (SS_COMMON_RESULT) Enum

func (SS_COMMON_RESULT) EnumDescriptor deprecated

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

Deprecated: Use SS_COMMON_RESULT.Descriptor instead.

func (SS_COMMON_RESULT) Number

func (SS_COMMON_RESULT) String

func (x SS_COMMON_RESULT) String() string

func (SS_COMMON_RESULT) Type

type SS_PROTO_TYPE

type SS_PROTO_TYPE int32

proto type

const (
	SS_PROTO_TYPE_HEART_BEAT_REQ SS_PROTO_TYPE = 0
	SS_PROTO_TYPE_HEART_BEAT_RSP SS_PROTO_TYPE = 1
	SS_PROTO_TYPE_PING_REQ       SS_PROTO_TYPE = 2
	SS_PROTO_TYPE_PING_RSP       SS_PROTO_TYPE = 3
	SS_PROTO_TYPE_LOGIN_REQ      SS_PROTO_TYPE = 4
	SS_PROTO_TYPE_LOGIN_RSP      SS_PROTO_TYPE = 5
	SS_PROTO_TYPE_LOGOUT_REQ     SS_PROTO_TYPE = 6
	SS_PROTO_TYPE_LOGOUT_RSP     SS_PROTO_TYPE = 7
	SS_PROTO_TYPE_REG_REQ        SS_PROTO_TYPE = 8
	SS_PROTO_TYPE_REG_RSP        SS_PROTO_TYPE = 9
	SS_PROTO_TYPE_USE_DISP_PROTO SS_PROTO_TYPE = 10 // serv <--> disp <--> serv
)

func (SS_PROTO_TYPE) Descriptor

func (SS_PROTO_TYPE) Enum

func (x SS_PROTO_TYPE) Enum() *SS_PROTO_TYPE

func (SS_PROTO_TYPE) EnumDescriptor deprecated

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

Deprecated: Use SS_PROTO_TYPE.Descriptor instead.

func (SS_PROTO_TYPE) Number

func (SS_PROTO_TYPE) String

func (x SS_PROTO_TYPE) String() string

func (SS_PROTO_TYPE) Type

type USER_LOGIN_RET

type USER_LOGIN_RET int32
const (
	USER_LOGIN_RET_LOGIN_SUCCESS  USER_LOGIN_RET = 0
	USER_LOGIN_RET_LOGIN_EMPTY    USER_LOGIN_RET = 1
	USER_LOGIN_RET_LOGIN_PASS     USER_LOGIN_RET = 2
	USER_LOGIN_RET_LOGIN_ERR      USER_LOGIN_RET = 3
	USER_LOGIN_RET_LOGIN_MULTI_ON USER_LOGIN_RET = 4 //multi online
)

func (USER_LOGIN_RET) Descriptor

func (USER_LOGIN_RET) Enum

func (x USER_LOGIN_RET) Enum() *USER_LOGIN_RET

func (USER_LOGIN_RET) EnumDescriptor deprecated

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

Deprecated: Use USER_LOGIN_RET.Descriptor instead.

func (USER_LOGIN_RET) Number

func (USER_LOGIN_RET) String

func (x USER_LOGIN_RET) String() string

func (USER_LOGIN_RET) Type

type USER_LOGOUT_REASON

type USER_LOGOUT_REASON int32

logout

const (
	USER_LOGOUT_REASON_LOGOUT_CLIENT_EXIT        USER_LOGOUT_REASON = 0 //client positive logout
	USER_LOGOUT_REASON_LOGOUT_CONN_CLOSED        USER_LOGOUT_REASON = 1 //client connection closed
	USER_LOGOUT_REASON_LOGOUT_SERVER_KICK_RECONN USER_LOGOUT_REASON = 2 //server kickout for reconn
	USER_LOGOUT_REASON_LOGOUT_SERVER_KICK_BAN    USER_LOGOUT_REASON = 3 //server kickout for ban
	USER_LOGOUT_REASON_LOGOUT_CLIENT_TIMEOUT     USER_LOGOUT_REASON = 4 //client timeout
	USER_LOGOUT_REASON_LOGOUT_OFFLINE_USER       USER_LOGOUT_REASON = 5 //user off-line still logout update online-logic
	USER_LOGOUT_REASON_LOGOUT_SERVER_SHUT        USER_LOGOUT_REASON = 6 //server shut down
)

func (USER_LOGOUT_REASON) Descriptor

func (USER_LOGOUT_REASON) Enum

func (USER_LOGOUT_REASON) EnumDescriptor deprecated

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

Deprecated: Use USER_LOGOUT_REASON.Descriptor instead.

func (USER_LOGOUT_REASON) Number

func (USER_LOGOUT_REASON) String

func (x USER_LOGOUT_REASON) String() string

func (USER_LOGOUT_REASON) Type

type UserBasic

type UserBasic struct {
	Name  string `protobuf:"bytes,20,opt,name=name,proto3" json:"name,omitempty"`
	Uid   int64  `protobuf:"varint,21,opt,name=uid,proto3" json:"uid,omitempty"`
	Addr  string `protobuf:"bytes,22,opt,name=addr,proto3" json:"addr,omitempty"`
	Sex   bool   `protobuf:"varint,23,opt,name=sex,proto3" json:"sex,omitempty"` //true:male false:female
	Age   int32  `protobuf:"varint,24,opt,name=age,proto3" json:"age,omitempty"`
	Level int32  `protobuf:"varint,25,opt,name=level,proto3" json:"level,omitempty"`
	// contains filtered or unexported fields
}

func (*UserBasic) Descriptor deprecated

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

Deprecated: Use UserBasic.ProtoReflect.Descriptor instead.

func (*UserBasic) GetAddr

func (x *UserBasic) GetAddr() string

func (*UserBasic) GetAge

func (x *UserBasic) GetAge() int32

func (*UserBasic) GetLevel

func (x *UserBasic) GetLevel() int32

func (*UserBasic) GetName

func (x *UserBasic) GetName() string

func (*UserBasic) GetSex

func (x *UserBasic) GetSex() bool

func (*UserBasic) GetUid

func (x *UserBasic) GetUid() int64

func (*UserBasic) ProtoMessage

func (*UserBasic) ProtoMessage()

func (*UserBasic) ProtoReflect

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

func (*UserBasic) Reset

func (x *UserBasic) Reset()

func (*UserBasic) String

func (x *UserBasic) String() string

type UserBlob

type UserBlob struct {
	Exp          int32      `protobuf:"varint,20,opt,name=exp,proto3" json:"exp,omitempty"`
	LastLoginTs  int64      `protobuf:"varint,21,opt,name=last_login_ts,json=lastLoginTs,proto3" json:"last_login_ts,omitempty"`
	LastLogoutTs int64      `protobuf:"varint,22,opt,name=last_logout_ts,json=lastLogoutTs,proto3" json:"last_logout_ts,omitempty"`
	Depot        *UserDepot `protobuf:"bytes,23,opt,name=depot,proto3" json:"depot,omitempty"`
	// contains filtered or unexported fields
}

blob to db

func (*UserBlob) Descriptor deprecated

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

Deprecated: Use UserBlob.ProtoReflect.Descriptor instead.

func (*UserBlob) GetDepot

func (x *UserBlob) GetDepot() *UserDepot

func (*UserBlob) GetExp

func (x *UserBlob) GetExp() int32

func (*UserBlob) GetLastLoginTs

func (x *UserBlob) GetLastLoginTs() int64

func (*UserBlob) GetLastLogoutTs

func (x *UserBlob) GetLastLogoutTs() int64

func (*UserBlob) ProtoMessage

func (*UserBlob) ProtoMessage()

func (*UserBlob) ProtoReflect

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

func (*UserBlob) Reset

func (x *UserBlob) Reset()

func (*UserBlob) String

func (x *UserBlob) String() string

type UserDepot

type UserDepot struct {
	ItemsCount int32           `protobuf:"varint,1,opt,name=items_count,json=itemsCount,proto3" json:"items_count,omitempty"`
	Items      map[int64]*Item `` /* 152-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*UserDepot) Descriptor deprecated

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

Deprecated: Use UserDepot.ProtoReflect.Descriptor instead.

func (*UserDepot) GetItems

func (x *UserDepot) GetItems() map[int64]*Item

func (*UserDepot) GetItemsCount

func (x *UserDepot) GetItemsCount() int32

func (*UserDepot) ProtoMessage

func (*UserDepot) ProtoMessage()

func (*UserDepot) ProtoReflect

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

func (*UserDepot) Reset

func (x *UserDepot) Reset()

func (*UserDepot) String

func (x *UserDepot) String() string

type UserInfo

type UserInfo struct {
	BasicInfo *UserBasic `protobuf:"bytes,20,opt,name=basic_info,json=basicInfo,proto3" json:"basic_info,omitempty"`
	BlobInfo  *UserBlob  `protobuf:"bytes,21,opt,name=blob_info,json=blobInfo,proto3" json:"blob_info,omitempty"`
	// contains filtered or unexported fields
}

func (*UserInfo) Descriptor deprecated

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

Deprecated: Use UserInfo.ProtoReflect.Descriptor instead.

func (*UserInfo) GetBasicInfo

func (x *UserInfo) GetBasicInfo() *UserBasic

func (*UserInfo) GetBlobInfo

func (x *UserInfo) GetBlobInfo() *UserBlob

func (*UserInfo) ProtoMessage

func (*UserInfo) ProtoMessage()

func (*UserInfo) ProtoReflect

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

func (*UserInfo) Reset

func (x *UserInfo) Reset()

func (*UserInfo) String

func (x *UserInfo) String() string

Jump to

Keyboard shortcuts

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