You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

173 lines
6.6 KiB

  1. // Code generated by protoc-gen-go.
  2. // source: types/types.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package types is a generated protocol buffer package.
  6. It is generated from these files:
  7. types/types.proto
  8. It has these top-level messages:
  9. Request
  10. Response
  11. */
  12. package types
  13. import proto "github.com/golang/protobuf/proto"
  14. import fmt "fmt"
  15. import math "math"
  16. // Reference imports to suppress errors if they are not otherwise used.
  17. var _ = proto.Marshal
  18. var _ = fmt.Errorf
  19. var _ = math.Inf
  20. type MessageType int32
  21. const (
  22. MessageType_NullMessage MessageType = 0
  23. MessageType_Echo MessageType = 1
  24. MessageType_Flush MessageType = 2
  25. MessageType_Info MessageType = 3
  26. MessageType_SetOption MessageType = 4
  27. MessageType_Exception MessageType = 5
  28. MessageType_AppendTx MessageType = 17
  29. MessageType_CheckTx MessageType = 18
  30. MessageType_Commit MessageType = 19
  31. MessageType_Query MessageType = 20
  32. )
  33. var MessageType_name = map[int32]string{
  34. 0: "NullMessage",
  35. 1: "Echo",
  36. 2: "Flush",
  37. 3: "Info",
  38. 4: "SetOption",
  39. 5: "Exception",
  40. 17: "AppendTx",
  41. 18: "CheckTx",
  42. 19: "Commit",
  43. 20: "Query",
  44. }
  45. var MessageType_value = map[string]int32{
  46. "NullMessage": 0,
  47. "Echo": 1,
  48. "Flush": 2,
  49. "Info": 3,
  50. "SetOption": 4,
  51. "Exception": 5,
  52. "AppendTx": 17,
  53. "CheckTx": 18,
  54. "Commit": 19,
  55. "Query": 20,
  56. }
  57. func (x MessageType) String() string {
  58. return proto.EnumName(MessageType_name, int32(x))
  59. }
  60. func (MessageType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  61. type CodeType int32
  62. const (
  63. CodeType_OK CodeType = 0
  64. CodeType_InternalError CodeType = 1
  65. CodeType_Unauthorized CodeType = 2
  66. CodeType_InsufficientFees CodeType = 3
  67. CodeType_UnknownRequest CodeType = 4
  68. CodeType_EncodingError CodeType = 5
  69. CodeType_BadNonce CodeType = 6
  70. CodeType_UnknownAccount CodeType = 7
  71. CodeType_InsufficientFunds CodeType = 8
  72. )
  73. var CodeType_name = map[int32]string{
  74. 0: "OK",
  75. 1: "InternalError",
  76. 2: "Unauthorized",
  77. 3: "InsufficientFees",
  78. 4: "UnknownRequest",
  79. 5: "EncodingError",
  80. 6: "BadNonce",
  81. 7: "UnknownAccount",
  82. 8: "InsufficientFunds",
  83. }
  84. var CodeType_value = map[string]int32{
  85. "OK": 0,
  86. "InternalError": 1,
  87. "Unauthorized": 2,
  88. "InsufficientFees": 3,
  89. "UnknownRequest": 4,
  90. "EncodingError": 5,
  91. "BadNonce": 6,
  92. "UnknownAccount": 7,
  93. "InsufficientFunds": 8,
  94. }
  95. func (x CodeType) String() string {
  96. return proto.EnumName(CodeType_name, int32(x))
  97. }
  98. func (CodeType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  99. type Request struct {
  100. Type MessageType `protobuf:"varint,1,opt,name=type,enum=types.MessageType" json:"type,omitempty"`
  101. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
  102. Key string `protobuf:"bytes,3,opt,name=key" json:"key,omitempty"`
  103. Value string `protobuf:"bytes,4,opt,name=value" json:"value,omitempty"`
  104. }
  105. func (m *Request) Reset() { *m = Request{} }
  106. func (m *Request) String() string { return proto.CompactTextString(m) }
  107. func (*Request) ProtoMessage() {}
  108. func (*Request) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  109. type Response struct {
  110. Type MessageType `protobuf:"varint,1,opt,name=type,enum=types.MessageType" json:"type,omitempty"`
  111. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
  112. Code CodeType `protobuf:"varint,3,opt,name=code,enum=types.CodeType" json:"code,omitempty"`
  113. Error string `protobuf:"bytes,4,opt,name=error" json:"error,omitempty"`
  114. Log string `protobuf:"bytes,5,opt,name=log" json:"log,omitempty"`
  115. }
  116. func (m *Response) Reset() { *m = Response{} }
  117. func (m *Response) String() string { return proto.CompactTextString(m) }
  118. func (*Response) ProtoMessage() {}
  119. func (*Response) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  120. func init() {
  121. proto.RegisterType((*Request)(nil), "types.Request")
  122. proto.RegisterType((*Response)(nil), "types.Response")
  123. proto.RegisterEnum("types.MessageType", MessageType_name, MessageType_value)
  124. proto.RegisterEnum("types.CodeType", CodeType_name, CodeType_value)
  125. }
  126. var fileDescriptor0 = []byte{
  127. // 406 bytes of a gzipped FileDescriptorProto
  128. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xa4, 0x92, 0x5f, 0x6e, 0xd3, 0x40,
  129. 0x10, 0xc6, 0x71, 0x62, 0xe7, 0xcf, 0x24, 0x4d, 0x37, 0x43, 0x90, 0xfc, 0x88, 0x8a, 0x84, 0x50,
  130. 0x1f, 0x8a, 0x54, 0x4e, 0x50, 0xa2, 0x54, 0x8a, 0x10, 0xad, 0x30, 0xed, 0x01, 0xcc, 0x7a, 0x12,
  131. 0x5b, 0x71, 0x66, 0x8d, 0x77, 0x17, 0x1a, 0xee, 0xc0, 0x13, 0xe7, 0xe0, 0x8e, 0xec, 0xae, 0x53,
  132. 0xa9, 0x3c, 0xf7, 0xc5, 0x9a, 0xef, 0xdb, 0x9d, 0x99, 0xdf, 0x8c, 0x17, 0xe6, 0xe6, 0xd0, 0x90,
  133. 0x7e, 0x1f, 0xbe, 0x17, 0x4d, 0xab, 0x8c, 0xc2, 0x24, 0x88, 0xb3, 0x3d, 0x0c, 0x33, 0xfa, 0x6e,
  134. 0x49, 0x1b, 0x7c, 0x0b, 0xb1, 0xf7, 0xd2, 0xe8, 0x75, 0xf4, 0x6e, 0x76, 0x89, 0x17, 0xdd, 0xed,
  135. 0xcf, 0xa4, 0x75, 0xbe, 0xa5, 0x3b, 0x27, 0xb2, 0x70, 0x8e, 0x08, 0x71, 0x91, 0x9b, 0x3c, 0xed,
  136. 0xb9, 0x7b, 0xd3, 0x2c, 0xc4, 0x28, 0xa0, 0xbf, 0xa3, 0x43, 0xda, 0x77, 0xd6, 0x38, 0xf3, 0x21,
  137. 0x2e, 0x20, 0xf9, 0x91, 0xd7, 0x96, 0xd2, 0x38, 0x78, 0x9d, 0x38, 0xfb, 0x13, 0xc1, 0x28, 0x23,
  138. 0xdd, 0x28, 0xd6, 0xf4, 0xac, 0x86, 0x6f, 0x20, 0x96, 0xaa, 0xa0, 0xd0, 0x71, 0x76, 0x79, 0x7a,
  139. 0xcc, 0x5d, 0x3a, 0xab, 0x4b, 0xf4, 0x87, 0x9e, 0x81, 0xda, 0x56, 0xb5, 0x8f, 0x0c, 0x41, 0x78,
  140. 0xd6, 0x5a, 0x6d, 0xd3, 0xa4, 0x63, 0x75, 0xe1, 0xf9, 0xef, 0x08, 0x26, 0x4f, 0xda, 0xe2, 0x29,
  141. 0x4c, 0x6e, 0x6c, 0x5d, 0x1f, 0x2d, 0xf1, 0x02, 0x47, 0x10, 0xaf, 0x64, 0xa9, 0x44, 0x84, 0x63,
  142. 0x48, 0xae, 0x6b, 0xab, 0x4b, 0xd1, 0xf3, 0xe6, 0x9a, 0x37, 0x4a, 0xf4, 0xf1, 0x04, 0xc6, 0x5f,
  143. 0xc9, 0xdc, 0x36, 0xa6, 0x52, 0x2c, 0x62, 0x2f, 0x57, 0x0f, 0x92, 0x3a, 0x99, 0xe0, 0x14, 0x46,
  144. 0x57, 0x4d, 0x43, 0x5c, 0xdc, 0x3d, 0x88, 0x39, 0x4e, 0x60, 0xb8, 0x2c, 0x49, 0xee, 0x9c, 0x70,
  145. 0x83, 0xc1, 0x60, 0xa9, 0xf6, 0xfb, 0xca, 0x88, 0x97, 0xbe, 0xf2, 0x17, 0x4b, 0xed, 0x41, 0x2c,
  146. 0xce, 0xff, 0xba, 0x2d, 0x3d, 0x8e, 0x82, 0x03, 0xe8, 0xdd, 0x7e, 0x72, 0x0c, 0x73, 0x38, 0x59,
  147. 0xb3, 0xa1, 0x96, 0xf3, 0x7a, 0xe5, 0xe7, 0x70, 0x30, 0x02, 0xa6, 0xf7, 0x9c, 0x5b, 0x53, 0xaa,
  148. 0xb6, 0xfa, 0x45, 0x85, 0x63, 0x5a, 0x80, 0x58, 0xb3, 0xb6, 0x9b, 0x4d, 0x25, 0x2b, 0x62, 0x73,
  149. 0x4d, 0xa4, 0x1d, 0x1f, 0xc2, 0xec, 0x9e, 0x77, 0xac, 0x7e, 0xf2, 0xf1, 0x5f, 0x3b, 0x48, 0x57,
  150. 0x6e, 0xc5, 0x6e, 0x4b, 0x15, 0x6f, 0xbb, 0x72, 0x01, 0xf4, 0x63, 0x5e, 0xdc, 0x28, 0x96, 0x24,
  151. 0x06, 0x4f, 0x92, 0xae, 0xa4, 0x54, 0x96, 0x8d, 0x18, 0xe2, 0x2b, 0x98, 0xff, 0x57, 0xde, 0x72,
  152. 0xa1, 0xc5, 0xe8, 0xdb, 0x20, 0x3c, 0xa9, 0x0f, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0x41, 0x3b,
  153. 0x4f, 0x97, 0x67, 0x02, 0x00, 0x00,
  154. }