protocol

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CoreBuiltinPacketID_name = map[int32]string{
		0:     "PACKET_COREBUILTIN_UNKNOW",
		-1000: "PACKET_SS_TX_START",
		-1001: "PACKET_SS_TX_CMD",
		-1002: "PACKET_SS_TX_RESULT",
		-1003: "PACKET_SS_SLICES",
		-1004: "PACKET_SS_AUTH",
		-1005: "PACKET_SS_KEEPALIVE",
		-1006: "PACKET_SS_AUTH_ACK",
		-1007: "PACKET_SS_RPC_REQ",
		-1008: "PACKET_SS_RPC_RESP",
	}
	CoreBuiltinPacketID_value = map[string]int32{
		"PACKET_COREBUILTIN_UNKNOW": 0,
		"PACKET_SS_TX_START":        -1000,
		"PACKET_SS_TX_CMD":          -1001,
		"PACKET_SS_TX_RESULT":       -1002,
		"PACKET_SS_SLICES":          -1003,
		"PACKET_SS_AUTH":            -1004,
		"PACKET_SS_KEEPALIVE":       -1005,
		"PACKET_SS_AUTH_ACK":        -1006,
		"PACKET_SS_RPC_REQ":         -1007,
		"PACKET_SS_RPC_RESP":        -1008,
	}
)

Enum value maps for CoreBuiltinPacketID.

View Source
var File_corepacketid_proto protoreflect.FileDescriptor
View Source
var File_keepalive_proto protoreflect.FileDescriptor
View Source
var File_sessionauth_proto protoreflect.FileDescriptor
View Source
var File_slices_proto protoreflect.FileDescriptor
View Source
var File_transact_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CoreBuiltinPacketID

type CoreBuiltinPacketID int32
const (
	CoreBuiltinPacketID_PACKET_COREBUILTIN_UNKNOW CoreBuiltinPacketID = 0
	CoreBuiltinPacketID_PACKET_SS_TX_START        CoreBuiltinPacketID = -1000
	CoreBuiltinPacketID_PACKET_SS_TX_CMD          CoreBuiltinPacketID = -1001
	CoreBuiltinPacketID_PACKET_SS_TX_RESULT       CoreBuiltinPacketID = -1002
	CoreBuiltinPacketID_PACKET_SS_SLICES          CoreBuiltinPacketID = -1003
	CoreBuiltinPacketID_PACKET_SS_AUTH            CoreBuiltinPacketID = -1004
	CoreBuiltinPacketID_PACKET_SS_KEEPALIVE       CoreBuiltinPacketID = -1005
	CoreBuiltinPacketID_PACKET_SS_AUTH_ACK        CoreBuiltinPacketID = -1006
	CoreBuiltinPacketID_PACKET_SS_RPC_REQ         CoreBuiltinPacketID = -1007
	CoreBuiltinPacketID_PACKET_SS_RPC_RESP        CoreBuiltinPacketID = -1008
)

func (CoreBuiltinPacketID) Descriptor

func (CoreBuiltinPacketID) Enum

func (CoreBuiltinPacketID) EnumDescriptor deprecated

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

Deprecated: Use CoreBuiltinPacketID.Descriptor instead.

func (CoreBuiltinPacketID) Number

func (CoreBuiltinPacketID) String

func (x CoreBuiltinPacketID) String() string

func (CoreBuiltinPacketID) Type

type RpcRequest

type RpcRequest struct {
	ServiceMethod string `protobuf:"bytes,1,opt,name=ServiceMethod,proto3" json:"ServiceMethod,omitempty"`
	Seq           uint64 `protobuf:"varint,2,opt,name=Seq,proto3" json:"Seq,omitempty"`
	Args          []byte `protobuf:"bytes,3,opt,name=Args,proto3" json:"Args,omitempty"`
	// contains filtered or unexported fields
}

func (*RpcRequest) Descriptor deprecated

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

Deprecated: Use RpcRequest.ProtoReflect.Descriptor instead.

func (*RpcRequest) GetArgs

func (x *RpcRequest) GetArgs() []byte

func (*RpcRequest) GetSeq

func (x *RpcRequest) GetSeq() uint64

func (*RpcRequest) GetServiceMethod

func (x *RpcRequest) GetServiceMethod() string

func (*RpcRequest) ProtoMessage

func (*RpcRequest) ProtoMessage()

func (*RpcRequest) ProtoReflect

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

func (*RpcRequest) Reset

func (x *RpcRequest) Reset()

func (*RpcRequest) String

func (x *RpcRequest) String() string

type RpcResponse

type RpcResponse struct {
	ServiceMethod string `protobuf:"bytes,1,opt,name=ServiceMethod,proto3" json:"ServiceMethod,omitempty"`
	Seq           uint64 `protobuf:"varint,2,opt,name=Seq,proto3" json:"Seq,omitempty"`
	Error         string `protobuf:"bytes,3,opt,name=Error,proto3" json:"Error,omitempty"`
	Reply         []byte `protobuf:"bytes,4,opt,name=Reply,proto3" json:"Reply,omitempty"`
	// contains filtered or unexported fields
}

func (*RpcResponse) Descriptor deprecated

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

Deprecated: Use RpcResponse.ProtoReflect.Descriptor instead.

func (*RpcResponse) GetError

func (x *RpcResponse) GetError() string

func (*RpcResponse) GetReply

func (x *RpcResponse) GetReply() []byte

func (*RpcResponse) GetSeq

func (x *RpcResponse) GetSeq() uint64

func (*RpcResponse) GetServiceMethod

func (x *RpcResponse) GetServiceMethod() string

func (*RpcResponse) ProtoMessage

func (*RpcResponse) ProtoMessage()

func (*RpcResponse) ProtoReflect

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

func (*RpcResponse) Reset

func (x *RpcResponse) Reset()

func (*RpcResponse) String

func (x *RpcResponse) String() string

type SSPacketAuth

type SSPacketAuth struct {
	AuthKey   string `protobuf:"bytes,1,opt,name=AuthKey,proto3" json:"AuthKey,omitempty"`
	Timestamp int64  `protobuf:"varint,2,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*SSPacketAuth) Descriptor deprecated

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

Deprecated: Use SSPacketAuth.ProtoReflect.Descriptor instead.

func (*SSPacketAuth) GetAuthKey

func (x *SSPacketAuth) GetAuthKey() string

func (*SSPacketAuth) GetTimestamp

func (x *SSPacketAuth) GetTimestamp() int64

func (*SSPacketAuth) ProtoMessage

func (*SSPacketAuth) ProtoMessage()

func (*SSPacketAuth) ProtoReflect

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

func (*SSPacketAuth) Reset

func (x *SSPacketAuth) Reset()

func (*SSPacketAuth) String

func (x *SSPacketAuth) String() string

type SSPacketAuthAck

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

func (*SSPacketAuthAck) Descriptor deprecated

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

Deprecated: Use SSPacketAuthAck.ProtoReflect.Descriptor instead.

func (*SSPacketAuthAck) GetMsg

func (x *SSPacketAuthAck) GetMsg() string

func (*SSPacketAuthAck) ProtoMessage

func (*SSPacketAuthAck) ProtoMessage()

func (*SSPacketAuthAck) ProtoReflect

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

func (*SSPacketAuthAck) Reset

func (x *SSPacketAuthAck) Reset()

func (*SSPacketAuthAck) String

func (x *SSPacketAuthAck) String() string

type SSPacketKeepAlive

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

func (*SSPacketKeepAlive) Descriptor deprecated

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

Deprecated: Use SSPacketKeepAlive.ProtoReflect.Descriptor instead.

func (*SSPacketKeepAlive) GetFlag

func (x *SSPacketKeepAlive) GetFlag() int32

func (*SSPacketKeepAlive) ProtoMessage

func (*SSPacketKeepAlive) ProtoMessage()

func (*SSPacketKeepAlive) ProtoReflect

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

func (*SSPacketKeepAlive) Reset

func (x *SSPacketKeepAlive) Reset()

func (*SSPacketKeepAlive) String

func (x *SSPacketKeepAlive) String() string

type SSPacketSlices

type SSPacketSlices struct {
	SeqNo      int32  `protobuf:"varint,1,opt,name=SeqNo,proto3" json:"SeqNo,omitempty"`
	TotalSize  int32  `protobuf:"varint,2,opt,name=TotalSize,proto3" json:"TotalSize,omitempty"`
	Offset     int32  `protobuf:"varint,3,opt,name=Offset,proto3" json:"Offset,omitempty"`
	PacketData []byte `protobuf:"bytes,4,opt,name=PacketData,proto3" json:"PacketData,omitempty"`
	// contains filtered or unexported fields
}

func (*SSPacketSlices) Descriptor deprecated

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

Deprecated: Use SSPacketSlices.ProtoReflect.Descriptor instead.

func (*SSPacketSlices) GetOffset

func (x *SSPacketSlices) GetOffset() int32

func (*SSPacketSlices) GetPacketData

func (x *SSPacketSlices) GetPacketData() []byte

func (*SSPacketSlices) GetSeqNo

func (x *SSPacketSlices) GetSeqNo() int32

func (*SSPacketSlices) GetTotalSize

func (x *SSPacketSlices) GetTotalSize() int32

func (*SSPacketSlices) ProtoMessage

func (*SSPacketSlices) ProtoMessage()

func (*SSPacketSlices) ProtoReflect

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

func (*SSPacketSlices) Reset

func (x *SSPacketSlices) Reset()

func (*SSPacketSlices) String

func (x *SSPacketSlices) String() string

type TransactCtrlCmd

type TransactCtrlCmd struct {
	TId int64 `protobuf:"varint,1,opt,name=TId,proto3" json:"TId,omitempty"`
	Cmd int32 `protobuf:"varint,2,opt,name=Cmd,proto3" json:"Cmd,omitempty"`
	// contains filtered or unexported fields
}

func (*TransactCtrlCmd) Descriptor deprecated

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

Deprecated: Use TransactCtrlCmd.ProtoReflect.Descriptor instead.

func (*TransactCtrlCmd) GetCmd

func (x *TransactCtrlCmd) GetCmd() int32

func (*TransactCtrlCmd) GetTId

func (x *TransactCtrlCmd) GetTId() int64

func (*TransactCtrlCmd) ProtoMessage

func (*TransactCtrlCmd) ProtoMessage()

func (*TransactCtrlCmd) ProtoReflect

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

func (*TransactCtrlCmd) Reset

func (x *TransactCtrlCmd) Reset()

func (*TransactCtrlCmd) String

func (x *TransactCtrlCmd) String() string

type TransactParam

type TransactParam struct {
	TransNodeID     int64 `protobuf:"varint,1,opt,name=TransNodeID,proto3" json:"TransNodeID,omitempty"`
	TransType       int32 `protobuf:"varint,2,opt,name=TransType,proto3" json:"TransType,omitempty"`
	OwnerType       int32 `protobuf:"varint,3,opt,name=OwnerType,proto3" json:"OwnerType,omitempty"`
	OwnerID         int32 `protobuf:"varint,4,opt,name=OwnerID,proto3" json:"OwnerID,omitempty"`
	SkeletonID      int32 `protobuf:"varint,5,opt,name=SkeletonID,proto3" json:"SkeletonID,omitempty"`
	LevelNo         int32 `protobuf:"varint,6,opt,name=LevelNo,proto3" json:"LevelNo,omitempty"`
	AreaID          int32 `protobuf:"varint,7,opt,name=AreaID,proto3" json:"AreaID,omitempty"`
	TimeOut         int64 `protobuf:"varint,8,opt,name=TimeOut,proto3" json:"TimeOut,omitempty"`
	TransCommitType int32 `protobuf:"varint,9,opt,name=TransCommitType,proto3" json:"TransCommitType,omitempty"`
	ExpiresTs       int64 `protobuf:"varint,10,opt,name=ExpiresTs,proto3" json:"ExpiresTs,omitempty"`
	// contains filtered or unexported fields
}

func (*TransactParam) Descriptor deprecated

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

Deprecated: Use TransactParam.ProtoReflect.Descriptor instead.

func (*TransactParam) GetAreaID

func (x *TransactParam) GetAreaID() int32

func (*TransactParam) GetExpiresTs

func (x *TransactParam) GetExpiresTs() int64

func (*TransactParam) GetLevelNo

func (x *TransactParam) GetLevelNo() int32

func (*TransactParam) GetOwnerID

func (x *TransactParam) GetOwnerID() int32

func (*TransactParam) GetOwnerType

func (x *TransactParam) GetOwnerType() int32

func (*TransactParam) GetSkeletonID

func (x *TransactParam) GetSkeletonID() int32

func (*TransactParam) GetTimeOut

func (x *TransactParam) GetTimeOut() int64

func (*TransactParam) GetTransCommitType

func (x *TransactParam) GetTransCommitType() int32

func (*TransactParam) GetTransNodeID

func (x *TransactParam) GetTransNodeID() int64

func (*TransactParam) GetTransType

func (x *TransactParam) GetTransType() int32

func (*TransactParam) ProtoMessage

func (*TransactParam) ProtoMessage()

func (*TransactParam) ProtoReflect

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

func (*TransactParam) Reset

func (x *TransactParam) Reset()

func (*TransactParam) String

func (x *TransactParam) String() string

type TransactResult

type TransactResult struct {
	MyTId      int64  `protobuf:"varint,1,opt,name=MyTId,proto3" json:"MyTId,omitempty"`
	ChildTId   int64  `protobuf:"varint,2,opt,name=ChildTId,proto3" json:"ChildTId,omitempty"`
	RetCode    int32  `protobuf:"varint,3,opt,name=RetCode,proto3" json:"RetCode,omitempty"`
	CustomData []byte `protobuf:"bytes,4,opt,name=CustomData,proto3" json:"CustomData,omitempty"`
	// contains filtered or unexported fields
}

func (*TransactResult) Descriptor deprecated

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

Deprecated: Use TransactResult.ProtoReflect.Descriptor instead.

func (*TransactResult) GetChildTId

func (x *TransactResult) GetChildTId() int64

func (*TransactResult) GetCustomData

func (x *TransactResult) GetCustomData() []byte

func (*TransactResult) GetMyTId

func (x *TransactResult) GetMyTId() int64

func (*TransactResult) GetRetCode

func (x *TransactResult) GetRetCode() int32

func (*TransactResult) ProtoMessage

func (*TransactResult) ProtoMessage()

func (*TransactResult) ProtoReflect

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

func (*TransactResult) Reset

func (x *TransactResult) Reset()

func (*TransactResult) String

func (x *TransactResult) String() string

type TransactStart

type TransactStart struct {
	MyTNP      *TransactParam `protobuf:"bytes,1,opt,name=MyTNP,proto3" json:"MyTNP,omitempty"`
	ParenTNP   *TransactParam `protobuf:"bytes,2,opt,name=ParenTNP,proto3" json:"ParenTNP,omitempty"`
	CustomData []byte         `protobuf:"bytes,3,opt,name=CustomData,proto3" json:"CustomData,omitempty"`
	// contains filtered or unexported fields
}

func (*TransactStart) Descriptor deprecated

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

Deprecated: Use TransactStart.ProtoReflect.Descriptor instead.

func (*TransactStart) GetCustomData

func (x *TransactStart) GetCustomData() []byte

func (*TransactStart) GetMyTNP

func (x *TransactStart) GetMyTNP() *TransactParam

func (*TransactStart) GetParenTNP

func (x *TransactStart) GetParenTNP() *TransactParam

func (*TransactStart) ProtoMessage

func (*TransactStart) ProtoMessage()

func (*TransactStart) ProtoReflect

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

func (*TransactStart) Reset

func (x *TransactStart) Reset()

func (*TransactStart) String

func (x *TransactStart) String() string

Jump to

Keyboard shortcuts

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