Documentation ¶
Overview ¶
Generated by github.com/davyxu/cellnet/protoc-gen-msg DO NOT EDIT! Source: coredef.proto
Package coredef is a generated protocol buffer package.
It is generated from these files:
coredef.proto
It has these top-level messages:
SessionAccepted SessionConnected SessionClosed PeerInit PeerStart PeerStop UpstreamACK CloseClientACK DownstreamACK RegisterRouterBackendACK RemoteCallREQ RemoteCallACK TestEchoACK
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloseClientACK ¶
type CloseClientACK struct {
ClientID int64 `protobuf:"varint,1,opt,name=ClientID,json=clientID" json:"ClientID,omitempty"`
}
关闭客户端 backend -> router
func (*CloseClientACK) Descriptor ¶
func (*CloseClientACK) Descriptor() ([]byte, []int)
func (*CloseClientACK) ProtoMessage ¶
func (*CloseClientACK) ProtoMessage()
func (*CloseClientACK) Reset ¶
func (m *CloseClientACK) Reset()
func (*CloseClientACK) String ¶
func (m *CloseClientACK) String() string
type DownstreamACK ¶
type DownstreamACK struct { MsgID uint32 `protobuf:"varint,1,opt,name=MsgID,json=msgID" json:"MsgID,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=Data,json=data,proto3" json:"Data,omitempty"` ClientID []int64 `protobuf:"varint,3,rep,name=ClientID,json=clientID" json:"ClientID,omitempty"` }
路由下行数据 backend -> router
func (*DownstreamACK) Descriptor ¶
func (*DownstreamACK) Descriptor() ([]byte, []int)
func (*DownstreamACK) ProtoMessage ¶
func (*DownstreamACK) ProtoMessage()
func (*DownstreamACK) Reset ¶
func (m *DownstreamACK) Reset()
func (*DownstreamACK) String ¶
func (m *DownstreamACK) String() string
type PeerInit ¶
type PeerInit struct { }
端初始化
func (*PeerInit) Descriptor ¶
func (*PeerInit) ProtoMessage ¶
func (*PeerInit) ProtoMessage()
type PeerStart ¶
type PeerStart struct { }
端启动
func (*PeerStart) Descriptor ¶
func (*PeerStart) ProtoMessage ¶
func (*PeerStart) ProtoMessage()
type PeerStop ¶
type PeerStop struct { }
端停止
func (*PeerStop) Descriptor ¶
func (*PeerStop) ProtoMessage ¶
func (*PeerStop) ProtoMessage()
type RegisterRouterBackendACK ¶
type RegisterRouterBackendACK struct {
Name string `protobuf:"bytes,1,opt,name=Name,json=name" json:"Name,omitempty"`
}
后台服务器到网关注册自己的连接 backend -> router
func (*RegisterRouterBackendACK) Descriptor ¶
func (*RegisterRouterBackendACK) Descriptor() ([]byte, []int)
func (*RegisterRouterBackendACK) ProtoMessage ¶
func (*RegisterRouterBackendACK) ProtoMessage()
func (*RegisterRouterBackendACK) Reset ¶
func (m *RegisterRouterBackendACK) Reset()
func (*RegisterRouterBackendACK) String ¶
func (m *RegisterRouterBackendACK) String() string
type RemoteCallACK ¶
type RemoteCallACK struct { MsgID uint32 `protobuf:"varint,1,opt,name=MsgID,json=msgID" json:"MsgID,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=Data,json=data,proto3" json:"Data,omitempty"` CallID int64 `protobuf:"varint,3,opt,name=CallID,json=callID" json:"CallID,omitempty"` }
回应
func (*RemoteCallACK) Descriptor ¶
func (*RemoteCallACK) Descriptor() ([]byte, []int)
func (*RemoteCallACK) ProtoMessage ¶
func (*RemoteCallACK) ProtoMessage()
func (*RemoteCallACK) Reset ¶
func (m *RemoteCallACK) Reset()
func (*RemoteCallACK) String ¶
func (m *RemoteCallACK) String() string
type RemoteCallREQ ¶
type RemoteCallREQ struct { MsgID uint32 `protobuf:"varint,1,opt,name=MsgID,json=msgID" json:"MsgID,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=Data,json=data,proto3" json:"Data,omitempty"` CallID int64 `protobuf:"varint,3,opt,name=CallID,json=callID" json:"CallID,omitempty"` }
请求
func (*RemoteCallREQ) Descriptor ¶
func (*RemoteCallREQ) Descriptor() ([]byte, []int)
func (*RemoteCallREQ) ProtoMessage ¶
func (*RemoteCallREQ) ProtoMessage()
func (*RemoteCallREQ) Reset ¶
func (m *RemoteCallREQ) Reset()
func (*RemoteCallREQ) String ¶
func (m *RemoteCallREQ) String() string
type SessionAccepted ¶
type SessionAccepted struct { }
一个连接接入
func (*SessionAccepted) Descriptor ¶
func (*SessionAccepted) Descriptor() ([]byte, []int)
func (*SessionAccepted) ProtoMessage ¶
func (*SessionAccepted) ProtoMessage()
func (*SessionAccepted) Reset ¶
func (m *SessionAccepted) Reset()
func (*SessionAccepted) String ¶
func (m *SessionAccepted) String() string
type SessionClosed ¶
type SessionClosed struct { }
连接断开
func (*SessionClosed) Descriptor ¶
func (*SessionClosed) Descriptor() ([]byte, []int)
func (*SessionClosed) ProtoMessage ¶
func (*SessionClosed) ProtoMessage()
func (*SessionClosed) Reset ¶
func (m *SessionClosed) Reset()
func (*SessionClosed) String ¶
func (m *SessionClosed) String() string
type SessionConnected ¶
type SessionConnected struct { }
已连接
func (*SessionConnected) Descriptor ¶
func (*SessionConnected) Descriptor() ([]byte, []int)
func (*SessionConnected) ProtoMessage ¶
func (*SessionConnected) ProtoMessage()
func (*SessionConnected) Reset ¶
func (m *SessionConnected) Reset()
func (*SessionConnected) String ¶
func (m *SessionConnected) String() string
type TestEchoACK ¶
type TestEchoACK struct {
Content string `protobuf:"bytes,1,opt,name=Content,json=content" json:"Content,omitempty"`
}
========================================================== 测试用消息 ==========================================================
func (*TestEchoACK) Descriptor ¶
func (*TestEchoACK) Descriptor() ([]byte, []int)
func (*TestEchoACK) ProtoMessage ¶
func (*TestEchoACK) ProtoMessage()
func (*TestEchoACK) Reset ¶
func (m *TestEchoACK) Reset()
func (*TestEchoACK) String ¶
func (m *TestEchoACK) String() string
type UpstreamACK ¶
type UpstreamACK struct { MsgID uint32 `protobuf:"varint,1,opt,name=MsgID,json=msgID" json:"MsgID,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=Data,json=data,proto3" json:"Data,omitempty"` ClientID int64 `protobuf:"varint,3,opt,name=ClientID,json=clientID" json:"ClientID,omitempty"` }
路由上行数据 router -> backend
func (*UpstreamACK) Descriptor ¶
func (*UpstreamACK) Descriptor() ([]byte, []int)
func (*UpstreamACK) ProtoMessage ¶
func (*UpstreamACK) ProtoMessage()
func (*UpstreamACK) Reset ¶
func (m *UpstreamACK) Reset()
func (*UpstreamACK) String ¶
func (m *UpstreamACK) String() string
Click to show internal directories.
Click to hide internal directories.