将消息注册到系统
()
| 30 | |
| 31 | // 将消息注册到系统 |
| 32 | func init() { |
| 33 | cellnet.RegisterMessageMeta(&cellnet.MessageMeta{ |
| 34 | Codec: codec.MustGetCodec("json"), |
| 35 | Type: reflect.TypeOf((*TestEchoACK)(nil)).Elem(), |
| 36 | ID: 1234, |
| 37 | }) |
| 38 | } |
| 39 | |
| 40 | var ( |
| 41 | flagClient = flag.Bool("client", false, "client mode") |
nothing calls this directly
no test coverage detected