@ -14,7 +14,7 @@ It has these top-level messages:
RequestFlush
RequestInfo
RequestSetOption
RequestAppend Tx
RequestDeliver Tx
RequestCheckTx
RequestQuery
RequestCommit
@ -27,7 +27,7 @@ It has these top-level messages:
ResponseFlush
ResponseInfo
ResponseSetOption
ResponseAppend Tx
ResponseDeliver Tx
ResponseCheckTx
ResponseQuery
ResponseCommit
@ -74,7 +74,7 @@ const (
MessageType_Info MessageType = 3
MessageType_SetOption MessageType = 4
MessageType_Exception MessageType = 5
MessageType_Append Tx MessageType = 17
MessageType_Deliver Tx MessageType = 17
MessageType_CheckTx MessageType = 18
MessageType_Commit MessageType = 19
MessageType_Query MessageType = 20
@ -90,7 +90,7 @@ var MessageType_name = map[int32]string{
3 : "Info" ,
4 : "SetOption" ,
5 : "Exception" ,
17 : "Append Tx" ,
17 : "Deliver Tx" ,
18 : "CheckTx" ,
19 : "Commit" ,
20 : "Query" ,
@ -105,7 +105,7 @@ var MessageType_value = map[string]int32{
"Info" : 3 ,
"SetOption" : 4 ,
"Exception" : 5 ,
"Append Tx" : 17 ,
"Deliver Tx" : 17 ,
"CheckTx" : 18 ,
"Commit" : 19 ,
"Query" : 20 ,
@ -233,7 +233,7 @@ type Request struct {
// *Request_Flush
// *Request_Info
// *Request_SetOption
// *Request_Append Tx
// *Request_Deliver Tx
// *Request_CheckTx
// *Request_Commit
// *Request_Query
@ -264,8 +264,8 @@ type Request_Info struct {
type Request_SetOption struct {
SetOption * RequestSetOption ` protobuf:"bytes,4,opt,name=set_option,json=setOption,oneof" `
}
type Request_Append Tx struct {
AppendTx * RequestAppendTx ` protobuf:"bytes,5,opt,name=append_tx,json=append Tx,oneof"`
type Request_Deliver Tx struct {
DeliverTx * RequestDeliverTx ` protobuf:"bytes,5,opt,name=deliver_tx,json=deliver Tx,oneof"`
}
type Request_CheckTx struct {
CheckTx * RequestCheckTx ` protobuf:"bytes,6,opt,name=check_tx,json=checkTx,oneof" `
@ -290,7 +290,7 @@ func (*Request_Echo) isRequest_Value() {}
func ( * Request_Flush ) isRequest_Value ( ) { }
func ( * Request_Info ) isRequest_Value ( ) { }
func ( * Request_SetOption ) isRequest_Value ( ) { }
func ( * Request_Append Tx ) isRequest_Value ( ) { }
func ( * Request_Deliver Tx ) isRequest_Value ( ) { }
func ( * Request_CheckTx ) isRequest_Value ( ) { }
func ( * Request_Commit ) isRequest_Value ( ) { }
func ( * Request_Query ) isRequest_Value ( ) { }
@ -333,9 +333,9 @@ func (m *Request) GetSetOption() *RequestSetOption {
return nil
}
func ( m * Request ) GetAppend Tx ( ) * RequestAppend Tx {
if x , ok := m . GetValue ( ) . ( * Request_Append Tx ) ; ok {
return x . Append Tx
func ( m * Request ) GetDeliver Tx ( ) * RequestDeliver Tx {
if x , ok := m . GetValue ( ) . ( * Request_Deliver Tx ) ; ok {
return x . Deliver Tx
}
return nil
}
@ -389,7 +389,7 @@ func (*Request) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error
( * Request_Flush ) ( nil ) ,
( * Request_Info ) ( nil ) ,
( * Request_SetOption ) ( nil ) ,
( * Request_Append Tx ) ( nil ) ,
( * Request_Deliver Tx ) ( nil ) ,
( * Request_CheckTx ) ( nil ) ,
( * Request_Commit ) ( nil ) ,
( * Request_Query ) ( nil ) ,
@ -423,9 +423,9 @@ func _Request_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
if err := b . EncodeMessage ( x . SetOption ) ; err != nil {
return err
}
case * Request_Append Tx :
case * Request_Deliver Tx :
b . EncodeVarint ( 5 << 3 | proto . WireBytes )
if err := b . EncodeMessage ( x . Append Tx) ; err != nil {
if err := b . EncodeMessage ( x . Deliver Tx) ; err != nil {
return err
}
case * Request_CheckTx :
@ -500,13 +500,13 @@ func _Request_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer
err := b . DecodeMessage ( msg )
m . Value = & Request_SetOption { msg }
return true , err
case 5 : // value.append _tx
case 5 : // value.deliver _tx
if wire != proto . WireBytes {
return true , proto . ErrInternalBadWireType
}
msg := new ( RequestAppend Tx )
msg := new ( RequestDeliver Tx )
err := b . DecodeMessage ( msg )
m . Value = & Request_Append Tx { msg }
m . Value = & Request_Deliver Tx { msg }
return true , err
case 6 : // value.check_tx
if wire != proto . WireBytes {
@ -585,8 +585,8 @@ func _Request_OneofSizer(msg proto.Message) (n int) {
n += proto . SizeVarint ( 4 << 3 | proto . WireBytes )
n += proto . SizeVarint ( uint64 ( s ) )
n += s
case * Request_Append Tx :
s := proto . Size ( x . Append Tx)
case * Request_Deliver Tx :
s := proto . Size ( x . Deliver Tx)
n += proto . SizeVarint ( 5 << 3 | proto . WireBytes )
n += proto . SizeVarint ( uint64 ( s ) )
n += s
@ -683,16 +683,16 @@ func (m *RequestSetOption) GetValue() string {
return ""
}
type RequestAppend Tx struct {
type RequestDeliver Tx struct {
Tx [ ] byte ` protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty" `
}
func ( m * RequestAppend Tx ) Reset ( ) { * m = RequestAppend Tx { } }
func ( m * RequestAppend Tx ) String ( ) string { return proto . CompactTextString ( m ) }
func ( * RequestAppend Tx ) ProtoMessage ( ) { }
func ( * RequestAppend Tx ) Descriptor ( ) ( [ ] byte , [ ] int ) { return fileDescriptor0 , [ ] int { 5 } }
func ( m * RequestDeliver Tx ) Reset ( ) { * m = RequestDeliver Tx { } }
func ( m * RequestDeliver Tx ) String ( ) string { return proto . CompactTextString ( m ) }
func ( * RequestDeliver Tx ) ProtoMessage ( ) { }
func ( * RequestDeliver Tx ) Descriptor ( ) ( [ ] byte , [ ] int ) { return fileDescriptor0 , [ ] int { 5 } }
func ( m * RequestAppend Tx ) GetTx ( ) [ ] byte {
func ( m * RequestDeliver Tx ) GetTx ( ) [ ] byte {
if m != nil {
return m . Tx
}
@ -802,7 +802,7 @@ type Response struct {
// *Response_Flush
// *Response_Info
// *Response_SetOption
// *Response_Append Tx
// *Response_Deliver Tx
// *Response_CheckTx
// *Response_Commit
// *Response_Query
@ -836,8 +836,8 @@ type Response_Info struct {
type Response_SetOption struct {
SetOption * ResponseSetOption ` protobuf:"bytes,5,opt,name=set_option,json=setOption,oneof" `
}
type Response_Append Tx struct {
AppendTx * ResponseAppendTx ` protobuf:"bytes,6,opt,name=append_tx,json=append Tx,oneof"`
type Response_Deliver Tx struct {
DeliverTx * ResponseDeliverTx ` protobuf:"bytes,6,opt,name=deliver_tx,json=deliver Tx,oneof"`
}
type Response_CheckTx struct {
CheckTx * ResponseCheckTx ` protobuf:"bytes,7,opt,name=check_tx,json=checkTx,oneof" `
@ -863,7 +863,7 @@ func (*Response_Echo) isResponse_Value() {}
func ( * Response_Flush ) isResponse_Value ( ) { }
func ( * Response_Info ) isResponse_Value ( ) { }
func ( * Response_SetOption ) isResponse_Value ( ) { }
func ( * Response_Append Tx ) isResponse_Value ( ) { }
func ( * Response_Deliver Tx ) isResponse_Value ( ) { }
func ( * Response_CheckTx ) isResponse_Value ( ) { }
func ( * Response_Commit ) isResponse_Value ( ) { }
func ( * Response_Query ) isResponse_Value ( ) { }
@ -913,9 +913,9 @@ func (m *Response) GetSetOption() *ResponseSetOption {
return nil
}
func ( m * Response ) GetAppend Tx ( ) * ResponseAppend Tx {
if x , ok := m . GetValue ( ) . ( * Response_Append Tx ) ; ok {
return x . Append Tx
func ( m * Response ) GetDeliver Tx ( ) * ResponseDeliver Tx {
if x , ok := m . GetValue ( ) . ( * Response_Deliver Tx ) ; ok {
return x . Deliver Tx
}
return nil
}
@ -970,7 +970,7 @@ func (*Response) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) erro
( * Response_Flush ) ( nil ) ,
( * Response_Info ) ( nil ) ,
( * Response_SetOption ) ( nil ) ,
( * Response_Append Tx ) ( nil ) ,
( * Response_Deliver Tx ) ( nil ) ,
( * Response_CheckTx ) ( nil ) ,
( * Response_Commit ) ( nil ) ,
( * Response_Query ) ( nil ) ,
@ -1009,9 +1009,9 @@ func _Response_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
if err := b . EncodeMessage ( x . SetOption ) ; err != nil {
return err
}
case * Response_Append Tx :
case * Response_Deliver Tx :
b . EncodeVarint ( 6 << 3 | proto . WireBytes )
if err := b . EncodeMessage ( x . Append Tx) ; err != nil {
if err := b . EncodeMessage ( x . Deliver Tx) ; err != nil {
return err
}
case * Response_CheckTx :
@ -1094,13 +1094,13 @@ func _Response_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffe
err := b . DecodeMessage ( msg )
m . Value = & Response_SetOption { msg }
return true , err
case 6 : // value.append _tx
case 6 : // value.deliver _tx
if wire != proto . WireBytes {
return true , proto . ErrInternalBadWireType
}
msg := new ( ResponseAppend Tx )
msg := new ( ResponseDeliver Tx )
err := b . DecodeMessage ( msg )
m . Value = & Response_Append Tx { msg }
m . Value = & Response_Deliver Tx { msg }
return true , err
case 7 : // value.check_tx
if wire != proto . WireBytes {
@ -1184,8 +1184,8 @@ func _Response_OneofSizer(msg proto.Message) (n int) {
n += proto . SizeVarint ( 5 << 3 | proto . WireBytes )
n += proto . SizeVarint ( uint64 ( s ) )
n += s
case * Response_Append Tx :
s := proto . Size ( x . Append Tx)
case * Response_Deliver Tx :
s := proto . Size ( x . Deliver Tx)
n += proto . SizeVarint ( 6 << 3 | proto . WireBytes )
n += proto . SizeVarint ( uint64 ( s ) )
n += s
@ -1322,32 +1322,32 @@ func (m *ResponseSetOption) GetLog() string {
return ""
}
type ResponseAppend Tx struct {
type ResponseDeliver Tx struct {
Code CodeType ` protobuf:"varint,1,opt,name=code,enum=types.CodeType" json:"code,omitempty" `
Data [ ] byte ` protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty" `
Log string ` protobuf:"bytes,3,opt,name=log" json:"log,omitempty" `
}
func ( m * ResponseAppend Tx ) Reset ( ) { * m = ResponseAppend Tx { } }
func ( m * ResponseAppend Tx ) String ( ) string { return proto . CompactTextString ( m ) }
func ( * ResponseAppend Tx ) ProtoMessage ( ) { }
func ( * ResponseAppend Tx ) Descriptor ( ) ( [ ] byte , [ ] int ) { return fileDescriptor0 , [ ] int { 18 } }
func ( m * ResponseDeliver Tx ) Reset ( ) { * m = ResponseDeliver Tx { } }
func ( m * ResponseDeliver Tx ) String ( ) string { return proto . CompactTextString ( m ) }
func ( * ResponseDeliver Tx ) ProtoMessage ( ) { }
func ( * ResponseDeliver Tx ) Descriptor ( ) ( [ ] byte , [ ] int ) { return fileDescriptor0 , [ ] int { 18 } }
func ( m * ResponseAppend Tx ) GetCode ( ) CodeType {
func ( m * ResponseDeliver Tx ) GetCode ( ) CodeType {
if m != nil {
return m . Code
}
return CodeType_OK
}
func ( m * ResponseAppend Tx ) GetData ( ) [ ] byte {
func ( m * ResponseDeliver Tx ) GetData ( ) [ ] byte {
if m != nil {
return m . Data
}
return nil
}
func ( m * ResponseAppend Tx ) GetLog ( ) string {
func ( m * ResponseDeliver Tx ) GetLog ( ) string {
if m != nil {
return m . Log
}
@ -1640,7 +1640,7 @@ func init() {
proto . RegisterType ( ( * RequestFlush ) ( nil ) , "types.RequestFlush" )
proto . RegisterType ( ( * RequestInfo ) ( nil ) , "types.RequestInfo" )
proto . RegisterType ( ( * RequestSetOption ) ( nil ) , "types.RequestSetOption" )
proto . RegisterType ( ( * RequestAppend Tx ) ( nil ) , "types.RequestAppend Tx" )
proto . RegisterType ( ( * RequestDeliver Tx ) ( nil ) , "types.RequestDeliver Tx" )
proto . RegisterType ( ( * RequestCheckTx ) ( nil ) , "types.RequestCheckTx" )
proto . RegisterType ( ( * RequestQuery ) ( nil ) , "types.RequestQuery" )
proto . RegisterType ( ( * RequestCommit ) ( nil ) , "types.RequestCommit" )
@ -1653,7 +1653,7 @@ func init() {
proto . RegisterType ( ( * ResponseFlush ) ( nil ) , "types.ResponseFlush" )
proto . RegisterType ( ( * ResponseInfo ) ( nil ) , "types.ResponseInfo" )
proto . RegisterType ( ( * ResponseSetOption ) ( nil ) , "types.ResponseSetOption" )
proto . RegisterType ( ( * ResponseAppend Tx ) ( nil ) , "types.ResponseAppend Tx" )
proto . RegisterType ( ( * ResponseDeliver Tx ) ( nil ) , "types.ResponseDeliver Tx" )
proto . RegisterType ( ( * ResponseCheckTx ) ( nil ) , "types.ResponseCheckTx" )
proto . RegisterType ( ( * ResponseQuery ) ( nil ) , "types.ResponseQuery" )
proto . RegisterType ( ( * ResponseCommit ) ( nil ) , "types.ResponseCommit" )
@ -1683,7 +1683,7 @@ type TMSPApplicationClient interface {
Flush ( ctx context . Context , in * RequestFlush , opts ... grpc . CallOption ) ( * ResponseFlush , error )
Info ( ctx context . Context , in * RequestInfo , opts ... grpc . CallOption ) ( * ResponseInfo , error )
SetOption ( ctx context . Context , in * RequestSetOption , opts ... grpc . CallOption ) ( * ResponseSetOption , error )
Append Tx( ctx context . Context , in * RequestAppend Tx , opts ... grpc . CallOption ) ( * ResponseAppend Tx , error )
Deliver Tx( ctx context . Context , in * RequestDeliver Tx , opts ... grpc . CallOption ) ( * ResponseDeliver Tx , error )
CheckTx ( ctx context . Context , in * RequestCheckTx , opts ... grpc . CallOption ) ( * ResponseCheckTx , error )
Query ( ctx context . Context , in * RequestQuery , opts ... grpc . CallOption ) ( * ResponseQuery , error )
Commit ( ctx context . Context , in * RequestCommit , opts ... grpc . CallOption ) ( * ResponseCommit , error )
@ -1736,9 +1736,9 @@ func (c *tMSPApplicationClient) SetOption(ctx context.Context, in *RequestSetOpt
return out , nil
}
func ( c * tMSPApplicationClient ) Append Tx( ctx context . Context , in * RequestAppend Tx , opts ... grpc . CallOption ) ( * ResponseAppend Tx , error ) {
out := new ( ResponseAppend Tx )
err := grpc . Invoke ( ctx , "/types.TMSPApplication/Append Tx" , in , out , c . cc , opts ... )
func ( c * tMSPApplicationClient ) Deliver Tx( ctx context . Context , in * RequestDeliver Tx , opts ... grpc . CallOption ) ( * ResponseDeliver Tx , error ) {
out := new ( ResponseDeliver Tx )
err := grpc . Invoke ( ctx , "/types.TMSPApplication/Deliver Tx" , in , out , c . cc , opts ... )
if err != nil {
return nil , err
}
@ -1806,7 +1806,7 @@ type TMSPApplicationServer interface {
Flush ( context . Context , * RequestFlush ) ( * ResponseFlush , error )
Info ( context . Context , * RequestInfo ) ( * ResponseInfo , error )
SetOption ( context . Context , * RequestSetOption ) ( * ResponseSetOption , error )
Append Tx( context . Context , * RequestAppend Tx ) ( * ResponseAppend Tx , error )
Deliver Tx( context . Context , * RequestDeliver Tx ) ( * ResponseDeliver Tx , error )
CheckTx ( context . Context , * RequestCheckTx ) ( * ResponseCheckTx , error )
Query ( context . Context , * RequestQuery ) ( * ResponseQuery , error )
Commit ( context . Context , * RequestCommit ) ( * ResponseCommit , error )
@ -1891,20 +1891,20 @@ func _TMSPApplication_SetOption_Handler(srv interface{}, ctx context.Context, de
return interceptor ( ctx , in , info , handler )
}
func _TMSPApplication_Append Tx_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( RequestAppend Tx )
func _TMSPApplication_Deliver Tx_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( RequestDeliver Tx )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( TMSPApplicationServer ) . Append Tx( ctx , in )
return srv . ( TMSPApplicationServer ) . Deliver Tx( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/types.TMSPApplication/Append Tx" ,
FullMethod : "/types.TMSPApplication/Deliver Tx" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( TMSPApplicationServer ) . Append Tx( ctx , req . ( * RequestAppend Tx ) )
return srv . ( TMSPApplicationServer ) . Deliver Tx( ctx , req . ( * RequestDeliver Tx ) )
}
return interceptor ( ctx , in , info , handler )
}
@ -2038,8 +2038,8 @@ var _TMSPApplication_serviceDesc = grpc.ServiceDesc{
Handler : _TMSPApplication_SetOption_Handler ,
} ,
{
MethodName : "Append Tx" ,
Handler : _TMSPApplication_Append Tx_Handler ,
MethodName : "Deliver Tx" ,
Handler : _TMSPApplication_Deliver Tx_Handler ,
} ,
{
MethodName : "CheckTx" ,