| 22 | } |
| 23 | |
| 24 | type Module interface { |
| 25 | IsRegistered() bool |
| 26 | |
| 27 | /** |
| 28 | * Module install and initialize. return false on failed |
| 29 | * and only invocation on WriteController is preparing |
| 30 | */ |
| 31 | Install() bool |
| 32 | |
| 33 | /** |
| 34 | * Handle outstanding request message. and messages |
| 35 | * are passed one by one. Any changes of message in |
| 36 | * Handle() will be preserved and delivery to next |
| 37 | * |
| 38 | * @return tunnel's error code (<0) or ack value |
| 39 | * |
| 40 | */ |
| 41 | Handle(message *tunnel.WMessage) int64 |
| 42 | } |
| 43 | |
| 44 | // the order of controller modules declared strictly |
| 45 | // doesn't change the order |
no outgoing calls
no test coverage detected