ServerProtocol is interface for handling the server side tars package.
| 24 | |
| 25 | // ServerProtocol is interface for handling the server side tars package. |
| 26 | type ServerProtocol interface { |
| 27 | Invoke(ctx context.Context, pkg []byte) []byte |
| 28 | ParsePackage(buff []byte) (int, int) |
| 29 | InvokeTimeout(pkg []byte) []byte |
| 30 | GetCloseMsg() []byte |
| 31 | DoClose(ctx context.Context) |
| 32 | } |
| 33 | |
| 34 | // ClientProtocol interface for handling tars client package. |
| 35 | type ClientProtocol interface { |
no outgoing calls
no test coverage detected