Test PreHandle
(request ziface.IRequest)
| 80 | |
| 81 | // Test PreHandle |
| 82 | func (this *PingRouter) PreHandle(request ziface.IRequest) { |
| 83 | fmt.Println("Call Router PreHandle") |
| 84 | err := request.GetConnection().SendMsg(1, []byte("before ping ....\n")) |
| 85 | if err != nil { |
| 86 | fmt.Println("preHandle SendMsg err: ", err) |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | // Test Handle |
| 91 | func (this *PingRouter) Handle(request ziface.IRequest) { |
nothing calls this directly
no test coverage detected