(conn ziface.IConnection)
| 8 | ) |
| 9 | |
| 10 | func DoConnectionBegin(conn ziface.IConnection) { |
| 11 | zlog.Ins().InfoF("DoConnectionBegin is Called ...") |
| 12 | |
| 13 | conn.SetProperty("Name", "Aceld") |
| 14 | conn.SetProperty("Home", "https://yuque.com/aceld") |
| 15 | |
| 16 | err := conn.SendMsg(2, []byte("DoConnection BEGIN...")) |
| 17 | if err != nil { |
| 18 | zlog.Error(err) |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | func DoConnectionLost(conn ziface.IConnection) { |
| 23 | if name, err := conn.GetProperty("Name"); err == nil { |
nothing calls this directly
no test coverage detected