package network //Processor 消息解析路由 type Processor interface { // must goroutine safe Route(msg interface{}, userData interface{}) error // must goroutine safe Unmarshal(data []byte) (interface{}, error) // must goroutine safe Marshal(msg interface{}) ([][]byte, error) }