提交 f82efca2 编写于 作者: J Jason

上级 bc890baf
......@@ -15,13 +15,9 @@ type Channel struct {
Error string
//connections []Connection
listener net.Listener
packetConn net.PacketConn
packetIndexes sync.Map
//serialIndexes sync.Map
}
func NewChannel(channel *storage.Channel) *Channel {
......
......@@ -15,12 +15,15 @@ type HeartBeatConf struct {
type Channel struct {
ID int
Name string
Tags []string
Serial string `storm:"index"`
Net string
Addr string
IsServer bool
Name string
Tags []string
Timeout time.Duration //会话超时
Register struct {
Enable bool
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册