HandlerInterface.go 379 B

1234567891011121314151617
  1. package zsshrpc_server
  2. type ZSshRpcOperationRequest struct {
  3. ChannelContext *ZSshRpcChannelContext
  4. Method ZSshRpcMethod
  5. URI string
  6. JSON string
  7. }
  8. type ZSshRpcOperationResponse struct {
  9. StatusCode int
  10. ResponseJSON string
  11. }
  12. type ZSshRpcOperationHandler interface {
  13. HandleOperation(request ZSshRpcOperationRequest) ZSshRpcOperationResponse
  14. }