FSMMachine State machine
| 74 | |
| 75 | // FSMMachine State machine |
| 76 | type FSMMachine interface { |
| 77 | // Bootup boots up the machine |
| 78 | Bootup(r *rw.LimitedReader, b []byte) (FSMState, FSMError) |
| 79 | |
| 80 | // Close stops the machine and get it ready for release. |
| 81 | // |
| 82 | // NOTE: Close function is responsible in making sure the HeaderClose signal |
| 83 | // is sent before it returns. |
| 84 | // (It may not need to send the header by itself, but it have to |
| 85 | // make sure the header is sent) |
| 86 | Close() error |
| 87 | |
| 88 | // Release shuts the machine down completely and release it's resources |
| 89 | Release() error |
| 90 | } |
| 91 | |
| 92 | // FSM state machine control |
| 93 | type FSM struct { |
no outgoing calls
no test coverage detected