package model import ( "io" "jrpcserver/model/jrpcerror" ) // TODO: Schema // CONSIDER: Adding schema info for request and response type JRPCCommand struct { Name string Command func(interface{}, map[string]string, io.ReadCloser) (interface{}, jrpcerror.JrpcError) RawResponse bool // If true then response is just marshalled otherwise rpc format }