go_dreamfactory/modules/gateway/core.go
2022-06-07 20:18:22 +08:00

27 lines
415 B
Go

package gateway
import (
"go_dreamfactory/pb"
"go_dreamfactory/lego/base"
"go_dreamfactory/lego/core"
)
type (
IAgent interface {
SessionId() string
IP() string
UserId() string
Build(uId string)
UnBuild()
WriteMsg(msg *pb.UserMessage) (err error)
Close() //主动关闭接口
}
IGateway interface {
core.IModule
Service() base.IRPCXService
Connect(a IAgent)
DisConnect(a IAgent)
}
)