rpccommand.go 394 B

123456789101112131415
  1. package model
  2. import (
  3. "io"
  4. "git.riomhaire.com/gremlin/jrpcserver/model/jrpcerror"
  5. )
  6. // TODO: Schema
  7. // CONSIDER: Adding schema info for request and response
  8. type JRPCCommand struct {
  9. Name string
  10. Command func(interface{}, map[string]string, io.ReadCloser) (interface{}, jrpcerror.JrpcError)
  11. RawResponse bool // If true then response is just marshalled otherwise rpc format
  12. }