mirror of
https://github.com/duanhf2012/origin.git
synced 2026-05-22 09:37:31 +08:00
新增TcpGateWay服务,支持通过配置进行路由转发
This commit is contained in:
11
sysservice/tcpgateway/IRouter.go
Normal file
11
sysservice/tcpgateway/IRouter.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package tcpgateway
|
||||
|
||||
type IRouter interface {
|
||||
RouterMessage(clientId uint64,msgType uint16,msg []byte) //消息转发
|
||||
RouterEvent(clientId uint64,eventType string) bool//消息转发
|
||||
Load() //加载路由规则
|
||||
|
||||
OnDisconnected(clientId uint64)
|
||||
OnConnected(clientId uint64)
|
||||
//ReplyMessage(clientId uint64,msg []byte)
|
||||
}
|
||||
Reference in New Issue
Block a user