protocol

package
v0.0.0-...-b8f6862 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 License: Apache-2.0 Imports: 3 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SrvlibPacketID_name = map[int32]string{
	-2000: "PACKET_SS_REGISTE",
	-2001: "PACKET_SS_MULTICAST",
	-2002: "PACKET_SS_BROADCAST",
	-2003: "PACKET_SS_TRANSIT",
	-2004: "PACKET_SS_REDIRECT",
	-2005: "PACKET_SS_SERVICE_REGISTE",
	-2006: "PACKET_SS_SERVICE_INFO",
	-2007: "PACKET_SS_SERVICE_SHUT",
}
View Source
var SrvlibPacketID_value = map[string]int32{
	"PACKET_SS_REGISTE":         -2000,
	"PACKET_SS_MULTICAST":       -2001,
	"PACKET_SS_BROADCAST":       -2002,
	"PACKET_SS_TRANSIT":         -2003,
	"PACKET_SS_REDIRECT":        -2004,
	"PACKET_SS_SERVICE_REGISTE": -2005,
	"PACKET_SS_SERVICE_INFO":    -2006,
	"PACKET_SS_SERVICE_SHUT":    -2007,
}

Functions

This section is empty.

Types

type BCClientSession

type BCClientSession struct {
	Dummy            *bool  `protobuf:"varint,1,opt" json:"Dummy,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*BCClientSession) GetDummy

func (m *BCClientSession) GetDummy() bool

func (*BCClientSession) ProtoMessage

func (*BCClientSession) ProtoMessage()

func (*BCClientSession) Reset

func (m *BCClientSession) Reset()

func (*BCClientSession) String

func (m *BCClientSession) String() string

type BCServerSession

type BCServerSession struct {
	SArea            *int32 `protobuf:"varint,1,opt" json:"SArea,omitempty"`
	SType            *int32 `protobuf:"varint,2,opt" json:"SType,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*BCServerSession) GetSArea

func (m *BCServerSession) GetSArea() int32

func (*BCServerSession) GetSType

func (m *BCServerSession) GetSType() int32

func (*BCServerSession) ProtoMessage

func (*BCServerSession) ProtoMessage()

func (*BCServerSession) Reset

func (m *BCServerSession) Reset()

func (*BCServerSession) String

func (m *BCServerSession) String() string

type BCSessionUnion

type BCSessionUnion struct {
	Bccs             *BCClientSession `protobuf:"bytes,1,opt" json:"Bccs,omitempty"`
	Bcss             *BCServerSession `protobuf:"bytes,2,opt" json:"Bcss,omitempty"`
	XXX_unrecognized []byte           `json:"-"`
}

func (*BCSessionUnion) GetBccs

func (m *BCSessionUnion) GetBccs() *BCClientSession

func (*BCSessionUnion) GetBcss

func (m *BCSessionUnion) GetBcss() *BCServerSession

func (*BCSessionUnion) ProtoMessage

func (*BCSessionUnion) ProtoMessage()

func (*BCSessionUnion) Reset

func (m *BCSessionUnion) Reset()

func (*BCSessionUnion) String

func (m *BCSessionUnion) String() string

type MCClientSession

type MCClientSession struct {
	SId              *int64 `protobuf:"varint,1,req" json:"SId,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*MCClientSession) GetSId

func (m *MCClientSession) GetSId() int64

func (*MCClientSession) ProtoMessage

func (*MCClientSession) ProtoMessage()

func (*MCClientSession) Reset

func (m *MCClientSession) Reset()

func (*MCClientSession) String

func (m *MCClientSession) String() string

type MCServerSession

type MCServerSession struct {
	SArea            *int32 `protobuf:"varint,1,req" json:"SArea,omitempty"`
	SType            *int32 `protobuf:"varint,2,req" json:"SType,omitempty"`
	SId              *int32 `protobuf:"varint,3,req" json:"SId,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*MCServerSession) GetSArea

func (m *MCServerSession) GetSArea() int32

func (*MCServerSession) GetSId

func (m *MCServerSession) GetSId() int32

func (*MCServerSession) GetSType

func (m *MCServerSession) GetSType() int32

func (*MCServerSession) ProtoMessage

func (*MCServerSession) ProtoMessage()

func (*MCServerSession) Reset

func (m *MCServerSession) Reset()

func (*MCServerSession) String

func (m *MCServerSession) String() string

type MCSessionUnion

type MCSessionUnion struct {
	Mccs             *MCClientSession `protobuf:"bytes,1,opt" json:"Mccs,omitempty"`
	Mcss             *MCServerSession `protobuf:"bytes,2,opt" json:"Mcss,omitempty"`
	XXX_unrecognized []byte           `json:"-"`
}

func (*MCSessionUnion) GetMccs

func (m *MCSessionUnion) GetMccs() *MCClientSession

func (*MCSessionUnion) GetMcss

func (m *MCSessionUnion) GetMcss() *MCServerSession

func (*MCSessionUnion) ProtoMessage

func (*MCSessionUnion) ProtoMessage()

func (*MCSessionUnion) Reset

func (m *MCSessionUnion) Reset()

func (*MCSessionUnion) String

func (m *MCSessionUnion) String() string

type SSPacketBroadcast

type SSPacketBroadcast struct {
	SessParam        *BCSessionUnion `protobuf:"bytes,1,req" json:"SessParam,omitempty"`
	PacketId         *int32          `protobuf:"varint,2,req" json:"PacketId,omitempty"`
	Data             []byte          `protobuf:"bytes,3,req" json:"Data,omitempty"`
	XXX_unrecognized []byte          `json:"-"`
}

func (*SSPacketBroadcast) GetData

func (m *SSPacketBroadcast) GetData() []byte

func (*SSPacketBroadcast) GetPacketId

func (m *SSPacketBroadcast) GetPacketId() int32

func (*SSPacketBroadcast) GetSessParam

func (m *SSPacketBroadcast) GetSessParam() *BCSessionUnion

func (*SSPacketBroadcast) ProtoMessage

func (*SSPacketBroadcast) ProtoMessage()

func (*SSPacketBroadcast) Reset

func (m *SSPacketBroadcast) Reset()

func (*SSPacketBroadcast) String

func (m *SSPacketBroadcast) String() string

type SSPacketMulticast

type SSPacketMulticast struct {
	Sessions         []*MCSessionUnion `protobuf:"bytes,1,rep" json:"Sessions,omitempty"`
	PacketId         *int32            `protobuf:"varint,2,req" json:"PacketId,omitempty"`
	Data             []byte            `protobuf:"bytes,3,req" json:"Data,omitempty"`
	XXX_unrecognized []byte            `json:"-"`
}

func (*SSPacketMulticast) GetData

func (m *SSPacketMulticast) GetData() []byte

func (*SSPacketMulticast) GetPacketId

func (m *SSPacketMulticast) GetPacketId() int32

func (*SSPacketMulticast) GetSessions

func (m *SSPacketMulticast) GetSessions() []*MCSessionUnion

func (*SSPacketMulticast) ProtoMessage

func (*SSPacketMulticast) ProtoMessage()

func (*SSPacketMulticast) Reset

func (m *SSPacketMulticast) Reset()

func (*SSPacketMulticast) String

func (m *SSPacketMulticast) String() string

type SSPacketRedirect

type SSPacketRedirect struct {
	ClientSid        *int64     `protobuf:"varint,1,opt" json:"ClientSid,omitempty"`
	SrvRoutes        []*SrvInfo `protobuf:"bytes,2,rep" json:"SrvRoutes,omitempty"`
	PacketId         *int32     `protobuf:"varint,3,req" json:"PacketId,omitempty"`
	Data             []byte     `protobuf:"bytes,4,req" json:"Data,omitempty"`
	XXX_unrecognized []byte     `json:"-"`
}

func (*SSPacketRedirect) GetClientSid

func (m *SSPacketRedirect) GetClientSid() int64

func (*SSPacketRedirect) GetData

func (m *SSPacketRedirect) GetData() []byte

func (*SSPacketRedirect) GetPacketId

func (m *SSPacketRedirect) GetPacketId() int32

func (*SSPacketRedirect) GetSrvRoutes

func (m *SSPacketRedirect) GetSrvRoutes() []*SrvInfo

func (*SSPacketRedirect) ProtoMessage

func (*SSPacketRedirect) ProtoMessage()

func (*SSPacketRedirect) Reset

func (m *SSPacketRedirect) Reset()

func (*SSPacketRedirect) String

func (m *SSPacketRedirect) String() string

type SSPacketTransit

type SSPacketTransit struct {
	SArea            *int32 `protobuf:"varint,1,req" json:"SArea,omitempty"`
	SType            *int32 `protobuf:"varint,2,req" json:"SType,omitempty"`
	SId              *int32 `protobuf:"varint,3,req" json:"SId,omitempty"`
	PacketId         *int32 `protobuf:"varint,4,req" json:"PacketId,omitempty"`
	Data             []byte `protobuf:"bytes,5,req" json:"Data,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*SSPacketTransit) GetData

func (m *SSPacketTransit) GetData() []byte

func (*SSPacketTransit) GetPacketId

func (m *SSPacketTransit) GetPacketId() int32

func (*SSPacketTransit) GetSArea

func (m *SSPacketTransit) GetSArea() int32

func (*SSPacketTransit) GetSId

func (m *SSPacketTransit) GetSId() int32

func (*SSPacketTransit) GetSType

func (m *SSPacketTransit) GetSType() int32

func (*SSPacketTransit) ProtoMessage

func (*SSPacketTransit) ProtoMessage()

func (*SSPacketTransit) Reset

func (m *SSPacketTransit) Reset()

func (*SSPacketTransit) String

func (m *SSPacketTransit) String() string

type SSServiceInfo

type SSServiceInfo struct {
	Service          *ServiceInfo `protobuf:"bytes,1,req" json:"Service,omitempty"`
	XXX_unrecognized []byte       `json:"-"`
}

func (*SSServiceInfo) GetService

func (m *SSServiceInfo) GetService() *ServiceInfo

func (*SSServiceInfo) ProtoMessage

func (*SSServiceInfo) ProtoMessage()

func (*SSServiceInfo) Reset

func (m *SSServiceInfo) Reset()

func (*SSServiceInfo) String

func (m *SSServiceInfo) String() string

type SSServiceRegiste

type SSServiceRegiste struct {
	Services         []*ServiceInfo `protobuf:"bytes,1,rep" json:"Services,omitempty"`
	XXX_unrecognized []byte         `json:"-"`
}

func (*SSServiceRegiste) GetServices

func (m *SSServiceRegiste) GetServices() []*ServiceInfo

func (*SSServiceRegiste) ProtoMessage

func (*SSServiceRegiste) ProtoMessage()

func (*SSServiceRegiste) Reset

func (m *SSServiceRegiste) Reset()

func (*SSServiceRegiste) String

func (m *SSServiceRegiste) String() string

type SSServiceShut

type SSServiceShut struct {
	Service          *ServiceInfo `protobuf:"bytes,1,req" json:"Service,omitempty"`
	XXX_unrecognized []byte       `json:"-"`
}

func (*SSServiceShut) GetService

func (m *SSServiceShut) GetService() *ServiceInfo

func (*SSServiceShut) ProtoMessage

func (*SSServiceShut) ProtoMessage()

func (*SSServiceShut) Reset

func (m *SSServiceShut) Reset()

func (*SSServiceShut) String

func (m *SSServiceShut) String() string

type SSSrvRegiste

type SSSrvRegiste struct {
	Id               *int32  `protobuf:"varint,1,req" json:"Id,omitempty"`
	Type             *int32  `protobuf:"varint,2,req" json:"Type,omitempty"`
	AreaId           *int32  `protobuf:"varint,3,req" json:"AreaId,omitempty"`
	Name             *string `protobuf:"bytes,4,req" json:"Name,omitempty"`
	Data             *string `protobuf:"bytes,5,opt" json:"Data,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*SSSrvRegiste) GetAreaId

func (m *SSSrvRegiste) GetAreaId() int32

func (*SSSrvRegiste) GetData

func (m *SSSrvRegiste) GetData() string

func (*SSSrvRegiste) GetId

func (m *SSSrvRegiste) GetId() int32

func (*SSSrvRegiste) GetName

func (m *SSSrvRegiste) GetName() string

func (*SSSrvRegiste) GetType

func (m *SSSrvRegiste) GetType() int32

func (*SSSrvRegiste) ProtoMessage

func (*SSSrvRegiste) ProtoMessage()

func (*SSSrvRegiste) Reset

func (m *SSSrvRegiste) Reset()

func (*SSSrvRegiste) String

func (m *SSSrvRegiste) String() string

type ServiceInfo

type ServiceInfo struct {
	AreaId           *int32   `protobuf:"varint,1,req" json:"AreaId,omitempty"`
	SrvId            *int32   `protobuf:"varint,2,req" json:"SrvId,omitempty"`
	SrvType          *int32   `protobuf:"varint,3,req" json:"SrvType,omitempty"`
	SrvPID           *int32   `protobuf:"varint,4,req" json:"SrvPID,omitempty"`
	SrvName          *string  `protobuf:"bytes,5,req" json:"SrvName,omitempty"`
	NetworkType      *string  `protobuf:"bytes,6,req" json:"NetworkType,omitempty"`
	Ip               *string  `protobuf:"bytes,7,req" json:"Ip,omitempty"`
	Port             *int32   `protobuf:"varint,8,req" json:"Port,omitempty"`
	WriteTimeOut     *int32   `protobuf:"varint,9,opt" json:"WriteTimeOut,omitempty"`
	ReadTimeOut      *int32   `protobuf:"varint,10,opt" json:"ReadTimeOut,omitempty"`
	IdleTimeOut      *int32   `protobuf:"varint,11,opt" json:"IdleTimeOut,omitempty"`
	MaxDone          *int32   `protobuf:"varint,12,opt" json:"MaxDone,omitempty"`
	MaxPend          *int32   `protobuf:"varint,13,opt" json:"MaxPend,omitempty"`
	MaxPacket        *int32   `protobuf:"varint,14,opt" json:"MaxPacket,omitempty"`
	RcvBuff          *int32   `protobuf:"varint,15,opt" json:"RcvBuff,omitempty"`
	SndBuff          *int32   `protobuf:"varint,16,opt" json:"SndBuff,omitempty"`
	SoLinger         *int32   `protobuf:"varint,17,opt" json:"SoLinger,omitempty"`
	IsAuth           *bool    `protobuf:"varint,18,opt" json:"IsAuth,omitempty"`
	KeepAlive        *bool    `protobuf:"varint,19,opt" json:"KeepAlive,omitempty"`
	NoDelay          *bool    `protobuf:"varint,20,opt" json:"NoDelay,omitempty"`
	IsAutoReconn     *bool    `protobuf:"varint,21,opt" json:"IsAutoReconn,omitempty"`
	IsInnerLink      *bool    `protobuf:"varint,22,opt" json:"IsInnerLink,omitempty"`
	SupportFragment  *bool    `protobuf:"varint,23,opt" json:"SupportFragment,omitempty"`
	AllowMultiConn   *bool    `protobuf:"varint,24,opt" json:"AllowMultiConn,omitempty"`
	AuthKey          *string  `protobuf:"bytes,25,opt" json:"AuthKey,omitempty"`
	EncoderName      *string  `protobuf:"bytes,26,opt" json:"EncoderName,omitempty"`
	DecoderName      *string  `protobuf:"bytes,27,opt" json:"DecoderName,omitempty"`
	FilterChain      []string `protobuf:"bytes,28,rep" json:"FilterChain,omitempty"`
	HandlerChain     []string `protobuf:"bytes,29,rep" json:"HandlerChain,omitempty"`
	Protocol         *string  `protobuf:"bytes,30,opt" json:"Protocol,omitempty"`
	Path             *string  `protobuf:"bytes,31,opt" json:"Path,omitempty"`
	OuterIp          *string  `protobuf:"bytes,32,opt" json:"OuterIp,omitempty"`
	XXX_unrecognized []byte   `json:"-"`
}

func (*ServiceInfo) GetAllowMultiConn

func (m *ServiceInfo) GetAllowMultiConn() bool

func (*ServiceInfo) GetAreaId

func (m *ServiceInfo) GetAreaId() int32

func (*ServiceInfo) GetAuthKey

func (m *ServiceInfo) GetAuthKey() string

func (*ServiceInfo) GetDecoderName

func (m *ServiceInfo) GetDecoderName() string

func (*ServiceInfo) GetEncoderName

func (m *ServiceInfo) GetEncoderName() string

func (*ServiceInfo) GetFilterChain

func (m *ServiceInfo) GetFilterChain() []string

func (*ServiceInfo) GetHandlerChain

func (m *ServiceInfo) GetHandlerChain() []string

func (*ServiceInfo) GetIdleTimeOut

func (m *ServiceInfo) GetIdleTimeOut() int32

func (*ServiceInfo) GetIp

func (m *ServiceInfo) GetIp() string

func (*ServiceInfo) GetIsAuth

func (m *ServiceInfo) GetIsAuth() bool

func (*ServiceInfo) GetIsAutoReconn

func (m *ServiceInfo) GetIsAutoReconn() bool
func (m *ServiceInfo) GetIsInnerLink() bool

func (*ServiceInfo) GetKeepAlive

func (m *ServiceInfo) GetKeepAlive() bool

func (*ServiceInfo) GetMaxDone

func (m *ServiceInfo) GetMaxDone() int32

func (*ServiceInfo) GetMaxPacket

func (m *ServiceInfo) GetMaxPacket() int32

func (*ServiceInfo) GetMaxPend

func (m *ServiceInfo) GetMaxPend() int32

func (*ServiceInfo) GetNetworkType

func (m *ServiceInfo) GetNetworkType() string

func (*ServiceInfo) GetNoDelay

func (m *ServiceInfo) GetNoDelay() bool

func (*ServiceInfo) GetOuterIp

func (m *ServiceInfo) GetOuterIp() string

func (*ServiceInfo) GetPath

func (m *ServiceInfo) GetPath() string

func (*ServiceInfo) GetPort

func (m *ServiceInfo) GetPort() int32

func (*ServiceInfo) GetProtocol

func (m *ServiceInfo) GetProtocol() string

func (*ServiceInfo) GetRcvBuff

func (m *ServiceInfo) GetRcvBuff() int32

func (*ServiceInfo) GetReadTimeOut

func (m *ServiceInfo) GetReadTimeOut() int32

func (*ServiceInfo) GetSndBuff

func (m *ServiceInfo) GetSndBuff() int32

func (*ServiceInfo) GetSoLinger

func (m *ServiceInfo) GetSoLinger() int32

func (*ServiceInfo) GetSrvId

func (m *ServiceInfo) GetSrvId() int32

func (*ServiceInfo) GetSrvName

func (m *ServiceInfo) GetSrvName() string

func (*ServiceInfo) GetSrvPID

func (m *ServiceInfo) GetSrvPID() int32

func (*ServiceInfo) GetSrvType

func (m *ServiceInfo) GetSrvType() int32

func (*ServiceInfo) GetSupportFragment

func (m *ServiceInfo) GetSupportFragment() bool

func (*ServiceInfo) GetWriteTimeOut

func (m *ServiceInfo) GetWriteTimeOut() int32

func (*ServiceInfo) ProtoMessage

func (*ServiceInfo) ProtoMessage()

func (*ServiceInfo) Reset

func (m *ServiceInfo) Reset()

func (*ServiceInfo) String

func (m *ServiceInfo) String() string

type SrvInfo

type SrvInfo struct {
	SArea            *int32 `protobuf:"varint,1,req" json:"SArea,omitempty"`
	SType            *int32 `protobuf:"varint,2,req" json:"SType,omitempty"`
	SId              *int32 `protobuf:"varint,3,req" json:"SId,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*SrvInfo) GetSArea

func (m *SrvInfo) GetSArea() int32

func (*SrvInfo) GetSId

func (m *SrvInfo) GetSId() int32

func (*SrvInfo) GetSType

func (m *SrvInfo) GetSType() int32

func (*SrvInfo) ProtoMessage

func (*SrvInfo) ProtoMessage()

func (*SrvInfo) Reset

func (m *SrvInfo) Reset()

func (*SrvInfo) String

func (m *SrvInfo) String() string

type SrvlibPacketID

type SrvlibPacketID int32
const (
	SrvlibPacketID_PACKET_SS_REGISTE         SrvlibPacketID = -2000
	SrvlibPacketID_PACKET_SS_MULTICAST       SrvlibPacketID = -2001
	SrvlibPacketID_PACKET_SS_BROADCAST       SrvlibPacketID = -2002
	SrvlibPacketID_PACKET_SS_TRANSIT         SrvlibPacketID = -2003
	SrvlibPacketID_PACKET_SS_REDIRECT        SrvlibPacketID = -2004
	SrvlibPacketID_PACKET_SS_SERVICE_REGISTE SrvlibPacketID = -2005
	SrvlibPacketID_PACKET_SS_SERVICE_INFO    SrvlibPacketID = -2006
	SrvlibPacketID_PACKET_SS_SERVICE_SHUT    SrvlibPacketID = -2007
)

func (SrvlibPacketID) Enum

func (x SrvlibPacketID) Enum() *SrvlibPacketID

func (SrvlibPacketID) MarshalJSON

func (x SrvlibPacketID) MarshalJSON() ([]byte, error)

func (SrvlibPacketID) String

func (x SrvlibPacketID) String() string

func (*SrvlibPacketID) UnmarshalJSON

func (x *SrvlibPacketID) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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