diff --git a/client/remote_client.go b/client/remote_client.go index 5d6dd6dc..d8370eee 100644 --- a/client/remote_client.go +++ b/client/remote_client.go @@ -79,7 +79,7 @@ func (cli *remoteClient) OnStart() (err error) { continue RETRY_LOOP } } - go cli.sendRequestsRoutine(conn) + go cli.sendValueRoutine(conn) go cli.recvResponseRoutine(conn) close(doneCh) // OnStart() will return no error. return @@ -122,7 +122,7 @@ func (cli *remoteClient) Error() error { //---------------------------------------- -func (cli *remoteClient) sendRequestsRoutine(conn net.Conn) { +func (cli *remoteClient) sendValueRoutine(conn net.Conn) { w := bufio.NewWriter(conn) for { select { @@ -142,7 +142,7 @@ func (cli *remoteClient) sendRequestsRoutine(conn net.Conn) { return } // log.Debug("Sent request", "requestType", reflect.TypeOf(reqres.Request), "request", reqres.Request) - if _, ok := reqres.Request.Requests.(*types.Request_Flush); ok { + if _, ok := reqres.Request.Value.(*types.Request_Flush); ok { err = w.Flush() if err != nil { cli.StopForError(err) @@ -162,7 +162,7 @@ func (cli *remoteClient) recvResponseRoutine(conn net.Conn) { cli.StopForError(err) return } - switch r := res.Responses.(type) { + switch r := res.Value.(type) { case *types.Response_Exception: // XXX After setting cli.err, release waiters (e.g. reqres.Done()) cli.StopForError(errors.New(r.Exception.Error)) @@ -189,12 +189,12 @@ func (cli *remoteClient) didRecvResponse(res *types.Response) error { // Get the first ReqRes next := cli.reqSent.Front() if next == nil { - return fmt.Errorf("Unexpected result type %v when nothing expected", reflect.TypeOf(res.Responses)) + return fmt.Errorf("Unexpected result type %v when nothing expected", reflect.TypeOf(res.Value)) } reqres := next.Value.(*ReqRes) if !resMatchesReq(reqres.Request, res) { return fmt.Errorf("Unexpected result type %v when response to %v expected", - reflect.TypeOf(res.Responses), reflect.TypeOf(reqres.Request.Requests)) + reflect.TypeOf(res.Value), reflect.TypeOf(reqres.Request.Value)) } reqres.Response = res // Set response @@ -372,7 +372,7 @@ func (cli *remoteClient) queueRequest(req *types.Request) *ReqRes { cli.reqQueue <- reqres // Maybe auto-flush, or unset auto-flush - switch req.Requests.(type) { + switch req.Value.(type) { case *types.Request_Flush: cli.flushTimer.Unset() default: @@ -385,27 +385,27 @@ func (cli *remoteClient) queueRequest(req *types.Request) *ReqRes { //---------------------------------------- func resMatchesReq(req *types.Request, res *types.Response) (ok bool) { - switch req.Requests.(type) { + switch req.Value.(type) { case *types.Request_Echo: - _, ok = res.Responses.(*types.Response_Echo) + _, ok = res.Value.(*types.Response_Echo) case *types.Request_Flush: - _, ok = res.Responses.(*types.Response_Flush) + _, ok = res.Value.(*types.Response_Flush) case *types.Request_Info: - _, ok = res.Responses.(*types.Response_Info) + _, ok = res.Value.(*types.Response_Info) case *types.Request_SetOption: - _, ok = res.Responses.(*types.Response_SetOption) + _, ok = res.Value.(*types.Response_SetOption) case *types.Request_AppendTx: - _, ok = res.Responses.(*types.Response_AppendTx) + _, ok = res.Value.(*types.Response_AppendTx) case *types.Request_CheckTx: - _, ok = res.Responses.(*types.Response_CheckTx) + _, ok = res.Value.(*types.Response_CheckTx) case *types.Request_Commit: - _, ok = res.Responses.(*types.Response_Commit) + _, ok = res.Value.(*types.Response_Commit) case *types.Request_Query: - _, ok = res.Responses.(*types.Response_Query) + _, ok = res.Value.(*types.Response_Query) case *types.Request_InitChain: - _, ok = res.Responses.(*types.Response_InitChain) + _, ok = res.Value.(*types.Response_InitChain) case *types.Request_EndBlock: - _, ok = res.Responses.(*types.Response_EndBlock) + _, ok = res.Value.(*types.Response_EndBlock) } return ok } diff --git a/example/dummy/dummy_test.go b/example/dummy/dummy_test.go index bfde4001..7fcffd84 100644 --- a/example/dummy/dummy_test.go +++ b/example/dummy/dummy_test.go @@ -40,7 +40,7 @@ func TestStream(t *testing.T) { } // Process response - switch r := res.Responses.(type) { + switch r := res.Value.(type) { case *types.Response_AppendTx: counter += 1 if r.AppendTx.Code != types.CodeType_OK { @@ -59,7 +59,7 @@ func TestStream(t *testing.T) { case *types.Response_Flush: // ignore default: - t.Error("Unexpected response type", reflect.TypeOf(res.Responses)) + t.Error("Unexpected response type", reflect.TypeOf(res.Value)) } } }() diff --git a/example/nil/nil_test.go b/example/nil/nil_test.go index 953e86d9..0ef143c7 100644 --- a/example/nil/nil_test.go +++ b/example/nil/nil_test.go @@ -40,7 +40,7 @@ func TestStream(t *testing.T) { } // Process response - switch r := res.Responses.(type) { + switch r := res.Value.(type) { case *types.Response_AppendTx: counter += 1 if r.AppendTx.Code != types.CodeType_OK { @@ -59,7 +59,7 @@ func TestStream(t *testing.T) { case *types.Response_Flush: // ignore default: - t.Error("Unexpected response type", reflect.TypeOf(res.Responses)) + t.Error("Unexpected response type", reflect.TypeOf(res.Value)) } } }() diff --git a/server/server.go b/server/server.go index dd2430a1..f5d6e556 100644 --- a/server/server.go +++ b/server/server.go @@ -113,7 +113,7 @@ func (s *Server) handleRequests(closeConn chan error, conn net.Conn, responses c if err == io.EOF { closeConn <- fmt.Errorf("Connection closed by client") } else { - closeConn <- fmt.Errorf("Error in handleRequests: %v", err.Error()) + closeConn <- fmt.Errorf("Error in handleValue: %v", err.Error()) } return } @@ -125,7 +125,7 @@ func (s *Server) handleRequests(closeConn chan error, conn net.Conn, responses c } func (s *Server) handleRequest(req *types.Request, responses chan<- *types.Response) { - switch r := req.Requests.(type) { + switch r := req.Value.(type) { case *types.Request_Echo: responses <- types.ToResponseEcho(r.Echo.Message) case *types.Request_Flush: @@ -176,13 +176,13 @@ func (s *Server) handleResponses(closeConn chan error, responses <-chan *types.R var res = <-responses err := types.WriteMessage(res, bufWriter) if err != nil { - closeConn <- fmt.Errorf("Error in handleResponses: %v", err.Error()) + closeConn <- fmt.Errorf("Error in handleValue: %v", err.Error()) return } - if _, ok := res.Responses.(*types.Response_Flush); ok { + if _, ok := res.Value.(*types.Response_Flush); ok { err = bufWriter.Flush() if err != nil { - closeConn <- fmt.Errorf("Error in handleResponses: %v", err.Error()) + closeConn <- fmt.Errorf("Error in handleValue: %v", err.Error()) return } } diff --git a/tests/benchmarks/simple/simple.go b/tests/benchmarks/simple/simple.go index 61016ab8..585ebd2b 100644 --- a/tests/benchmarks/simple/simple.go +++ b/tests/benchmarks/simple/simple.go @@ -62,7 +62,7 @@ func makeRequest(conn net.Conn, req *types.Request) (*types.Response, error) { if err != nil { return nil, err } - if _, ok := resFlush.Responses.(*types.Response_Flush); !ok { + if _, ok := resFlush.Value.(*types.Response_Flush); !ok { return nil, errors.New(Fmt("Expected flush response but got something else: %v", reflect.TypeOf(resFlush))) } diff --git a/types/messages.go b/types/messages.go index 4249c1c0..6b047d47 100644 --- a/types/messages.go +++ b/types/messages.go @@ -9,67 +9,67 @@ import ( func ToRequestEcho(message string) *Request { return &Request{ - Requests: &Request_Echo{&RequestEcho{message}}, + Value: &Request_Echo{&RequestEcho{message}}, } } func ToRequestFlush() *Request { return &Request{ - Requests: &Request_Flush{&RequestFlush{}}, + Value: &Request_Flush{&RequestFlush{}}, } } func ToRequestInfo() *Request { return &Request{ - Requests: &Request_Info{&RequestInfo{}}, + Value: &Request_Info{&RequestInfo{}}, } } func ToRequestSetOption(key string, value string) *Request { return &Request{ - Requests: &Request_SetOption{&RequestSetOption{key, value}}, + Value: &Request_SetOption{&RequestSetOption{key, value}}, } } func ToRequestAppendTx(txBytes []byte) *Request { return &Request{ - Requests: &Request_AppendTx{&RequestAppendTx{txBytes}}, + Value: &Request_AppendTx{&RequestAppendTx{txBytes}}, } } func ToRequestCheckTx(txBytes []byte) *Request { return &Request{ - Requests: &Request_CheckTx{&RequestCheckTx{txBytes}}, + Value: &Request_CheckTx{&RequestCheckTx{txBytes}}, } } func ToRequestCommit() *Request { return &Request{ - Requests: &Request_Commit{&RequestCommit{}}, + Value: &Request_Commit{&RequestCommit{}}, } } func ToRequestQuery(queryBytes []byte) *Request { return &Request{ - Requests: &Request_Query{&RequestQuery{queryBytes}}, + Value: &Request_Query{&RequestQuery{queryBytes}}, } } func ToRequestInitChain(validators []*Validator) *Request { return &Request{ - Requests: &Request_InitChain{&RequestInitChain{validators}}, + Value: &Request_InitChain{&RequestInitChain{validators}}, } } func ToRequestBeginBlock(height uint64) *Request { return &Request{ - Requests: &Request_BeginBlock{&RequestBeginBlock{height}}, + Value: &Request_BeginBlock{&RequestBeginBlock{height}}, } } func ToRequestEndBlock(height uint64) *Request { return &Request{ - Requests: &Request_EndBlock{&RequestEndBlock{height}}, + Value: &Request_EndBlock{&RequestEndBlock{height}}, } } @@ -77,73 +77,73 @@ func ToRequestEndBlock(height uint64) *Request { func ToResponseException(errStr string) *Response { return &Response{ - Responses: &Response_Exception{&ResponseException{errStr}}, + Value: &Response_Exception{&ResponseException{errStr}}, } } func ToResponseEcho(message string) *Response { return &Response{ - Responses: &Response_Echo{&ResponseEcho{message}}, + Value: &Response_Echo{&ResponseEcho{message}}, } } func ToResponseFlush() *Response { return &Response{ - Responses: &Response_Flush{&ResponseFlush{}}, + Value: &Response_Flush{&ResponseFlush{}}, } } func ToResponseInfo(info string) *Response { return &Response{ - Responses: &Response_Info{&ResponseInfo{info}}, + Value: &Response_Info{&ResponseInfo{info}}, } } func ToResponseSetOption(log string) *Response { return &Response{ - Responses: &Response_SetOption{&ResponseSetOption{log}}, + Value: &Response_SetOption{&ResponseSetOption{log}}, } } func ToResponseAppendTx(code CodeType, data []byte, log string) *Response { return &Response{ - Responses: &Response_AppendTx{&ResponseAppendTx{code, data, log}}, + Value: &Response_AppendTx{&ResponseAppendTx{code, data, log}}, } } func ToResponseCheckTx(code CodeType, data []byte, log string) *Response { return &Response{ - Responses: &Response_CheckTx{&ResponseCheckTx{code, data, log}}, + Value: &Response_CheckTx{&ResponseCheckTx{code, data, log}}, } } func ToResponseCommit(code CodeType, data []byte, log string) *Response { return &Response{ - Responses: &Response_Commit{&ResponseCommit{code, data, log}}, + Value: &Response_Commit{&ResponseCommit{code, data, log}}, } } func ToResponseQuery(code CodeType, data []byte, log string) *Response { return &Response{ - Responses: &Response_Query{&ResponseQuery{code, data, log}}, + Value: &Response_Query{&ResponseQuery{code, data, log}}, } } func ToResponseInitChain() *Response { return &Response{ - Responses: &Response_InitChain{&ResponseInitChain{}}, + Value: &Response_InitChain{&ResponseInitChain{}}, } } func ToResponseBeginBlock() *Response { return &Response{ - Responses: &Response_BeginBlock{&ResponseBeginBlock{}}, + Value: &Response_BeginBlock{&ResponseBeginBlock{}}, } } func ToResponseEndBlock(validators []*Validator) *Response { return &Response{ - Responses: &Response_EndBlock{&ResponseEndBlock{validators}}, + Value: &Response_EndBlock{&ResponseEndBlock{validators}}, } } diff --git a/types/types.pb.go b/types/types.pb.go index 5e94e290..3d803236 100644 --- a/types/types.pb.go +++ b/types/types.pb.go @@ -51,6 +51,10 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. const _ = proto.ProtoPackageIsVersion1 +// Not being used +// Could be added to request/response +// so we don't have to type switch +// (would be twice as fast, but we're talking about 15ns) type MessageType int32 const ( @@ -214,7 +218,7 @@ func (x CodeType) String() string { func (CodeType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } type Request struct { - // Types that are valid to be assigned to Requests: + // Types that are valid to be assigned to Value: // *Request_Echo // *Request_Flush // *Request_Info @@ -226,7 +230,7 @@ type Request struct { // *Request_InitChain // *Request_BeginBlock // *Request_EndBlock - Requests isRequest_Requests `protobuf_oneof:"requests"` + Value isRequest_Value `protobuf_oneof:"value"` } func (m *Request) Reset() { *m = Request{} } @@ -234,8 +238,8 @@ func (m *Request) String() string { return proto.CompactTextString(m) func (*Request) ProtoMessage() {} func (*Request) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } -type isRequest_Requests interface { - isRequest_Requests() +type isRequest_Value interface { + isRequest_Value() } type Request_Echo struct { @@ -272,97 +276,97 @@ type Request_EndBlock struct { EndBlock *RequestEndBlock `protobuf:"bytes,11,opt,name=end_block,json=endBlock,oneof"` } -func (*Request_Echo) isRequest_Requests() {} -func (*Request_Flush) isRequest_Requests() {} -func (*Request_Info) isRequest_Requests() {} -func (*Request_SetOption) isRequest_Requests() {} -func (*Request_AppendTx) isRequest_Requests() {} -func (*Request_CheckTx) isRequest_Requests() {} -func (*Request_Commit) isRequest_Requests() {} -func (*Request_Query) isRequest_Requests() {} -func (*Request_InitChain) isRequest_Requests() {} -func (*Request_BeginBlock) isRequest_Requests() {} -func (*Request_EndBlock) isRequest_Requests() {} +func (*Request_Echo) isRequest_Value() {} +func (*Request_Flush) isRequest_Value() {} +func (*Request_Info) isRequest_Value() {} +func (*Request_SetOption) isRequest_Value() {} +func (*Request_AppendTx) isRequest_Value() {} +func (*Request_CheckTx) isRequest_Value() {} +func (*Request_Commit) isRequest_Value() {} +func (*Request_Query) isRequest_Value() {} +func (*Request_InitChain) isRequest_Value() {} +func (*Request_BeginBlock) isRequest_Value() {} +func (*Request_EndBlock) isRequest_Value() {} -func (m *Request) GetRequests() isRequest_Requests { +func (m *Request) GetValue() isRequest_Value { if m != nil { - return m.Requests + return m.Value } return nil } func (m *Request) GetEcho() *RequestEcho { - if x, ok := m.GetRequests().(*Request_Echo); ok { + if x, ok := m.GetValue().(*Request_Echo); ok { return x.Echo } return nil } func (m *Request) GetFlush() *RequestFlush { - if x, ok := m.GetRequests().(*Request_Flush); ok { + if x, ok := m.GetValue().(*Request_Flush); ok { return x.Flush } return nil } func (m *Request) GetInfo() *RequestInfo { - if x, ok := m.GetRequests().(*Request_Info); ok { + if x, ok := m.GetValue().(*Request_Info); ok { return x.Info } return nil } func (m *Request) GetSetOption() *RequestSetOption { - if x, ok := m.GetRequests().(*Request_SetOption); ok { + if x, ok := m.GetValue().(*Request_SetOption); ok { return x.SetOption } return nil } func (m *Request) GetAppendTx() *RequestAppendTx { - if x, ok := m.GetRequests().(*Request_AppendTx); ok { + if x, ok := m.GetValue().(*Request_AppendTx); ok { return x.AppendTx } return nil } func (m *Request) GetCheckTx() *RequestCheckTx { - if x, ok := m.GetRequests().(*Request_CheckTx); ok { + if x, ok := m.GetValue().(*Request_CheckTx); ok { return x.CheckTx } return nil } func (m *Request) GetCommit() *RequestCommit { - if x, ok := m.GetRequests().(*Request_Commit); ok { + if x, ok := m.GetValue().(*Request_Commit); ok { return x.Commit } return nil } func (m *Request) GetQuery() *RequestQuery { - if x, ok := m.GetRequests().(*Request_Query); ok { + if x, ok := m.GetValue().(*Request_Query); ok { return x.Query } return nil } func (m *Request) GetInitChain() *RequestInitChain { - if x, ok := m.GetRequests().(*Request_InitChain); ok { + if x, ok := m.GetValue().(*Request_InitChain); ok { return x.InitChain } return nil } func (m *Request) GetBeginBlock() *RequestBeginBlock { - if x, ok := m.GetRequests().(*Request_BeginBlock); ok { + if x, ok := m.GetValue().(*Request_BeginBlock); ok { return x.BeginBlock } return nil } func (m *Request) GetEndBlock() *RequestEndBlock { - if x, ok := m.GetRequests().(*Request_EndBlock); ok { + if x, ok := m.GetValue().(*Request_EndBlock); ok { return x.EndBlock } return nil @@ -387,8 +391,8 @@ func (*Request) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error func _Request_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { m := msg.(*Request) - // requests - switch x := m.Requests.(type) { + // value + switch x := m.Value.(type) { case *Request_Echo: b.EncodeVarint(1<<3 | proto.WireBytes) if err := b.EncodeMessage(x.Echo); err != nil { @@ -446,7 +450,7 @@ func _Request_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { } case nil: default: - return fmt.Errorf("Request.Requests has unexpected type %T", x) + return fmt.Errorf("Request.Value has unexpected type %T", x) } return nil } @@ -454,93 +458,93 @@ func _Request_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { func _Request_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { m := msg.(*Request) switch tag { - case 1: // requests.echo + case 1: // value.echo if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(RequestEcho) err := b.DecodeMessage(msg) - m.Requests = &Request_Echo{msg} + m.Value = &Request_Echo{msg} return true, err - case 2: // requests.flush + case 2: // value.flush if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(RequestFlush) err := b.DecodeMessage(msg) - m.Requests = &Request_Flush{msg} + m.Value = &Request_Flush{msg} return true, err - case 3: // requests.info + case 3: // value.info if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(RequestInfo) err := b.DecodeMessage(msg) - m.Requests = &Request_Info{msg} + m.Value = &Request_Info{msg} return true, err - case 4: // requests.set_option + case 4: // value.set_option if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(RequestSetOption) err := b.DecodeMessage(msg) - m.Requests = &Request_SetOption{msg} + m.Value = &Request_SetOption{msg} return true, err - case 5: // requests.append_tx + case 5: // value.append_tx if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(RequestAppendTx) err := b.DecodeMessage(msg) - m.Requests = &Request_AppendTx{msg} + m.Value = &Request_AppendTx{msg} return true, err - case 6: // requests.check_tx + case 6: // value.check_tx if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(RequestCheckTx) err := b.DecodeMessage(msg) - m.Requests = &Request_CheckTx{msg} + m.Value = &Request_CheckTx{msg} return true, err - case 7: // requests.commit + case 7: // value.commit if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(RequestCommit) err := b.DecodeMessage(msg) - m.Requests = &Request_Commit{msg} + m.Value = &Request_Commit{msg} return true, err - case 8: // requests.query + case 8: // value.query if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(RequestQuery) err := b.DecodeMessage(msg) - m.Requests = &Request_Query{msg} + m.Value = &Request_Query{msg} return true, err - case 9: // requests.init_chain + case 9: // value.init_chain if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(RequestInitChain) err := b.DecodeMessage(msg) - m.Requests = &Request_InitChain{msg} + m.Value = &Request_InitChain{msg} return true, err - case 10: // requests.begin_block + case 10: // value.begin_block if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(RequestBeginBlock) err := b.DecodeMessage(msg) - m.Requests = &Request_BeginBlock{msg} + m.Value = &Request_BeginBlock{msg} return true, err - case 11: // requests.end_block + case 11: // value.end_block if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(RequestEndBlock) err := b.DecodeMessage(msg) - m.Requests = &Request_EndBlock{msg} + m.Value = &Request_EndBlock{msg} return true, err default: return false, nil @@ -549,8 +553,8 @@ func _Request_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer func _Request_OneofSizer(msg proto.Message) (n int) { m := msg.(*Request) - // requests - switch x := m.Requests.(type) { + // value + switch x := m.Value.(type) { case *Request_Echo: s := proto.Size(x.Echo) n += proto.SizeVarint(1<<3 | proto.WireBytes) @@ -718,7 +722,7 @@ func (*RequestEndBlock) ProtoMessage() {} func (*RequestEndBlock) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} } type Response struct { - // Types that are valid to be assigned to Responses: + // Types that are valid to be assigned to Value: // *Response_Exception // *Response_Echo // *Response_Flush @@ -731,7 +735,7 @@ type Response struct { // *Response_InitChain // *Response_BeginBlock // *Response_EndBlock - Responses isResponse_Responses `protobuf_oneof:"responses"` + Value isResponse_Value `protobuf_oneof:"value"` } func (m *Response) Reset() { *m = Response{} } @@ -739,8 +743,8 @@ func (m *Response) String() string { return proto.CompactTextString(m func (*Response) ProtoMessage() {} func (*Response) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} } -type isResponse_Responses interface { - isResponse_Responses() +type isResponse_Value interface { + isResponse_Value() } type Response_Exception struct { @@ -780,105 +784,105 @@ type Response_EndBlock struct { EndBlock *ResponseEndBlock `protobuf:"bytes,12,opt,name=end_block,json=endBlock,oneof"` } -func (*Response_Exception) isResponse_Responses() {} -func (*Response_Echo) isResponse_Responses() {} -func (*Response_Flush) isResponse_Responses() {} -func (*Response_Info) isResponse_Responses() {} -func (*Response_SetOption) isResponse_Responses() {} -func (*Response_AppendTx) isResponse_Responses() {} -func (*Response_CheckTx) isResponse_Responses() {} -func (*Response_Commit) isResponse_Responses() {} -func (*Response_Query) isResponse_Responses() {} -func (*Response_InitChain) isResponse_Responses() {} -func (*Response_BeginBlock) isResponse_Responses() {} -func (*Response_EndBlock) isResponse_Responses() {} +func (*Response_Exception) isResponse_Value() {} +func (*Response_Echo) isResponse_Value() {} +func (*Response_Flush) isResponse_Value() {} +func (*Response_Info) isResponse_Value() {} +func (*Response_SetOption) isResponse_Value() {} +func (*Response_AppendTx) isResponse_Value() {} +func (*Response_CheckTx) isResponse_Value() {} +func (*Response_Commit) isResponse_Value() {} +func (*Response_Query) isResponse_Value() {} +func (*Response_InitChain) isResponse_Value() {} +func (*Response_BeginBlock) isResponse_Value() {} +func (*Response_EndBlock) isResponse_Value() {} -func (m *Response) GetResponses() isResponse_Responses { +func (m *Response) GetValue() isResponse_Value { if m != nil { - return m.Responses + return m.Value } return nil } func (m *Response) GetException() *ResponseException { - if x, ok := m.GetResponses().(*Response_Exception); ok { + if x, ok := m.GetValue().(*Response_Exception); ok { return x.Exception } return nil } func (m *Response) GetEcho() *ResponseEcho { - if x, ok := m.GetResponses().(*Response_Echo); ok { + if x, ok := m.GetValue().(*Response_Echo); ok { return x.Echo } return nil } func (m *Response) GetFlush() *ResponseFlush { - if x, ok := m.GetResponses().(*Response_Flush); ok { + if x, ok := m.GetValue().(*Response_Flush); ok { return x.Flush } return nil } func (m *Response) GetInfo() *ResponseInfo { - if x, ok := m.GetResponses().(*Response_Info); ok { + if x, ok := m.GetValue().(*Response_Info); ok { return x.Info } return nil } func (m *Response) GetSetOption() *ResponseSetOption { - if x, ok := m.GetResponses().(*Response_SetOption); ok { + if x, ok := m.GetValue().(*Response_SetOption); ok { return x.SetOption } return nil } func (m *Response) GetAppendTx() *ResponseAppendTx { - if x, ok := m.GetResponses().(*Response_AppendTx); ok { + if x, ok := m.GetValue().(*Response_AppendTx); ok { return x.AppendTx } return nil } func (m *Response) GetCheckTx() *ResponseCheckTx { - if x, ok := m.GetResponses().(*Response_CheckTx); ok { + if x, ok := m.GetValue().(*Response_CheckTx); ok { return x.CheckTx } return nil } func (m *Response) GetCommit() *ResponseCommit { - if x, ok := m.GetResponses().(*Response_Commit); ok { + if x, ok := m.GetValue().(*Response_Commit); ok { return x.Commit } return nil } func (m *Response) GetQuery() *ResponseQuery { - if x, ok := m.GetResponses().(*Response_Query); ok { + if x, ok := m.GetValue().(*Response_Query); ok { return x.Query } return nil } func (m *Response) GetInitChain() *ResponseInitChain { - if x, ok := m.GetResponses().(*Response_InitChain); ok { + if x, ok := m.GetValue().(*Response_InitChain); ok { return x.InitChain } return nil } func (m *Response) GetBeginBlock() *ResponseBeginBlock { - if x, ok := m.GetResponses().(*Response_BeginBlock); ok { + if x, ok := m.GetValue().(*Response_BeginBlock); ok { return x.BeginBlock } return nil } func (m *Response) GetEndBlock() *ResponseEndBlock { - if x, ok := m.GetResponses().(*Response_EndBlock); ok { + if x, ok := m.GetValue().(*Response_EndBlock); ok { return x.EndBlock } return nil @@ -904,8 +908,8 @@ func (*Response) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) erro func _Response_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { m := msg.(*Response) - // responses - switch x := m.Responses.(type) { + // value + switch x := m.Value.(type) { case *Response_Exception: b.EncodeVarint(1<<3 | proto.WireBytes) if err := b.EncodeMessage(x.Exception); err != nil { @@ -968,7 +972,7 @@ func _Response_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { } case nil: default: - return fmt.Errorf("Response.Responses has unexpected type %T", x) + return fmt.Errorf("Response.Value has unexpected type %T", x) } return nil } @@ -976,101 +980,101 @@ func _Response_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { func _Response_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { m := msg.(*Response) switch tag { - case 1: // responses.exception + case 1: // value.exception if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(ResponseException) err := b.DecodeMessage(msg) - m.Responses = &Response_Exception{msg} + m.Value = &Response_Exception{msg} return true, err - case 2: // responses.echo + case 2: // value.echo if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(ResponseEcho) err := b.DecodeMessage(msg) - m.Responses = &Response_Echo{msg} + m.Value = &Response_Echo{msg} return true, err - case 3: // responses.flush + case 3: // value.flush if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(ResponseFlush) err := b.DecodeMessage(msg) - m.Responses = &Response_Flush{msg} + m.Value = &Response_Flush{msg} return true, err - case 4: // responses.info + case 4: // value.info if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(ResponseInfo) err := b.DecodeMessage(msg) - m.Responses = &Response_Info{msg} + m.Value = &Response_Info{msg} return true, err - case 5: // responses.set_option + case 5: // value.set_option if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(ResponseSetOption) err := b.DecodeMessage(msg) - m.Responses = &Response_SetOption{msg} + m.Value = &Response_SetOption{msg} return true, err - case 6: // responses.append_tx + case 6: // value.append_tx if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(ResponseAppendTx) err := b.DecodeMessage(msg) - m.Responses = &Response_AppendTx{msg} + m.Value = &Response_AppendTx{msg} return true, err - case 7: // responses.check_tx + case 7: // value.check_tx if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(ResponseCheckTx) err := b.DecodeMessage(msg) - m.Responses = &Response_CheckTx{msg} + m.Value = &Response_CheckTx{msg} return true, err - case 8: // responses.commit + case 8: // value.commit if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(ResponseCommit) err := b.DecodeMessage(msg) - m.Responses = &Response_Commit{msg} + m.Value = &Response_Commit{msg} return true, err - case 9: // responses.query + case 9: // value.query if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(ResponseQuery) err := b.DecodeMessage(msg) - m.Responses = &Response_Query{msg} + m.Value = &Response_Query{msg} return true, err - case 10: // responses.init_chain + case 10: // value.init_chain if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(ResponseInitChain) err := b.DecodeMessage(msg) - m.Responses = &Response_InitChain{msg} + m.Value = &Response_InitChain{msg} return true, err - case 11: // responses.begin_block + case 11: // value.begin_block if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(ResponseBeginBlock) err := b.DecodeMessage(msg) - m.Responses = &Response_BeginBlock{msg} + m.Value = &Response_BeginBlock{msg} return true, err - case 12: // responses.end_block + case 12: // value.end_block if wire != proto.WireBytes { return true, proto.ErrInternalBadWireType } msg := new(ResponseEndBlock) err := b.DecodeMessage(msg) - m.Responses = &Response_EndBlock{msg} + m.Value = &Response_EndBlock{msg} return true, err default: return false, nil @@ -1079,8 +1083,8 @@ func _Response_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffe func _Response_OneofSizer(msg proto.Message) (n int) { m := msg.(*Response) - // responses - switch x := m.Responses.(type) { + // value + switch x := m.Value.(type) { case *Response_Exception: s := proto.Size(x.Exception) n += proto.SizeVarint(1<<3 | proto.WireBytes) @@ -1310,83 +1314,83 @@ func init() { } var fileDescriptor0 = []byte{ - // 1244 bytes of a gzipped FileDescriptorProto + // 1235 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xac, 0x57, 0xc9, 0x72, 0xdb, 0x46, - 0x13, 0x36, 0xc4, 0xbd, 0x49, 0x51, 0xc3, 0x11, 0x65, 0xc3, 0x7f, 0xfd, 0x07, 0x07, 0xd9, 0xbc, - 0x95, 0x92, 0x92, 0x2b, 0xae, 0x28, 0xc9, 0xc5, 0x92, 0x69, 0x45, 0xe5, 0xb2, 0xa5, 0xd0, 0xcb, - 0x21, 0x4b, 0xa9, 0x40, 0x70, 0x48, 0x22, 0xa2, 0x66, 0x60, 0x2c, 0xb6, 0x94, 0x77, 0xc8, 0xe3, - 0xe4, 0x92, 0x07, 0x48, 0x55, 0xf6, 0xe5, 0x89, 0x32, 0x3d, 0x33, 0x00, 0x09, 0x08, 0xca, 0x49, - 0xb7, 0x99, 0xee, 0xfe, 0x1a, 0x3d, 0xdd,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b, 0x18, 0xb0, 0x83, 0x7e, + 0x89, 0x85, 0x61, 0x76, 0xc3, 0xf6, 0x61, 0xef, 0x34, 0xb4, 0x5d, 0xd6, 0xbe, 0x3e, 0x1f, 0xa5, + 0xc0, 0x26, 0x33, 0xe7, 0x9d, 0x06, 0xd4, 0x5e, 0xb9, 0xb3, 0x84, 0x39, 0x1f, 0x42, 0x7b, 0x81, + 0x26, 0xd4, 0x86, 0xc6, 0x09, 0x8b, 0x22, 0x77, 0xc2, 0x14, 0x97, 0x5a, 0x83, 0xf4, 0xea, 0x74, + 0xa1, 0xb3, 0x48, 0x12, 0x67, 0x39, 0x03, 0x22, 0x11, 0x9c, 0xcf, 0x80, 0x14, 0xe7, 0x4c, 0x09, + 0x54, 0x8e, 0xd9, 0x99, 0x49, 0x84, 0x47, 0xda, 0x33, 0x9f, 0x55, 0xec, 0x6b, 0x0d, 0x4c, 0x0d, + 0xef, 0xc0, 0x4a, 0x61, 0xd4, 0xb4, 0x0b, 0x4b, 0x72, 0xb0, 0x88, 0xec, 0x0c, 0xe4, 0xc9, 0xb9, + 0x01, 0xdd, 0xfc, 0x5c, 0xcf, 0x45, 0xbc, 0x97, 0xd5, 0xa7, 0x06, 0x83, 0x9f, 0xd2, 0xc3, 0xd3, + 0x21, 0xfa, 0xe2, 0xac, 0xc0, 0x72, 0x6e, 0xda, 0xce, 0x83, 0xac, 0xee, 0x6c, 0x3a, 0xf4, 0x63, + 0x00, 0x59, 0x98, 0x3f, 0x72, 0x63, 0x11, 0x46, 0x12, 0x5f, 0x91, 0x4d, 0x25, 0xa6, 0xa9, 0x2f, + 0x52, 0xc7, 0x60, 0x21, 0xc6, 0xb9, 0x0d, 0xab, 0xe7, 0x06, 0x45, 0xaf, 0x42, 0x7d, 0xca, 0xfc, + 0xc9, 0x34, 0x56, 0x25, 0x54, 0x07, 0xe6, 0xe6, 0x6c, 0x64, 0xcf, 0x4d, 0x47, 0x73, 0x61, 0xe8, + 0x8f, 0x35, 0x68, 0x0e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 0xee, 0xf0, 0xca, + 0x0c, 0x00, 0x00, } diff --git a/types/types.proto b/types/types.proto index 4df19b82..e132ef65 100644 --- a/types/types.proto +++ b/types/types.proto @@ -6,6 +6,10 @@ package types; //---------------------------------------- // Message types +// Not being used +// Could be added to request/response +// so we don't have to type switch +// (would be twice as fast, but we're talking about 15ns) enum MessageType { NullMessage = 0x00; @@ -70,7 +74,7 @@ enum CodeType { // Request types message Request { - oneof requests{ + oneof value{ RequestEcho echo = 1; RequestFlush flush = 2; RequestInfo info = 3; @@ -132,7 +136,7 @@ message RequestEndBlock{ message Response { - oneof responses{ + oneof value{ ResponseException exception = 1; ResponseEcho echo = 2; ResponseFlush flush = 3;