/
ipc.pb.go
185 lines (160 loc) · 6.27 KB
/
ipc.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: ipc.proto
package ipc
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type IPCEnvelope_MsgType int32
const (
IPCEnvelope_GET_BLOCK_NUMBER IPCEnvelope_MsgType = 0
IPCEnvelope_GET_TS IPCEnvelope_MsgType = 1
IPCEnvelope_GET_SENDER IPCEnvelope_MsgType = 2
IPCEnvelope_GET_BLOCKHASH IPCEnvelope_MsgType = 3
IPCEnvelope_SUICIDE IPCEnvelope_MsgType = 4
IPCEnvelope_REVERT IPCEnvelope_MsgType = 5
IPCEnvelope_GET IPCEnvelope_MsgType = 6
IPCEnvelope_APPEND IPCEnvelope_MsgType = 7
)
var IPCEnvelope_MsgType_name = map[int32]string{
0: "GET_BLOCK_NUMBER",
1: "GET_TS",
2: "GET_SENDER",
3: "GET_BLOCKHASH",
4: "SUICIDE",
5: "REVERT",
6: "GET",
7: "APPEND",
}
var IPCEnvelope_MsgType_value = map[string]int32{
"GET_BLOCK_NUMBER": 0,
"GET_TS": 1,
"GET_SENDER": 2,
"GET_BLOCKHASH": 3,
"SUICIDE": 4,
"REVERT": 5,
"GET": 6,
"APPEND": 7,
}
func (x IPCEnvelope_MsgType) String() string {
return proto.EnumName(IPCEnvelope_MsgType_name, int32(x))
}
func (IPCEnvelope_MsgType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_6eb2dac662210585, []int{0, 0}
}
type IPCEnvelope struct {
Type IPCEnvelope_MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=IPCEnvelope_MsgType" json:"type,omitempty"`
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *IPCEnvelope) Reset() { *m = IPCEnvelope{} }
func (m *IPCEnvelope) String() string { return proto.CompactTextString(m) }
func (*IPCEnvelope) ProtoMessage() {}
func (*IPCEnvelope) Descriptor() ([]byte, []int) {
return fileDescriptor_6eb2dac662210585, []int{0}
}
func (m *IPCEnvelope) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IPCEnvelope.Unmarshal(m, b)
}
func (m *IPCEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IPCEnvelope.Marshal(b, m, deterministic)
}
func (m *IPCEnvelope) XXX_Merge(src proto.Message) {
xxx_messageInfo_IPCEnvelope.Merge(m, src)
}
func (m *IPCEnvelope) XXX_Size() int {
return xxx_messageInfo_IPCEnvelope.Size(m)
}
func (m *IPCEnvelope) XXX_DiscardUnknown() {
xxx_messageInfo_IPCEnvelope.DiscardUnknown(m)
}
var xxx_messageInfo_IPCEnvelope proto.InternalMessageInfo
func (m *IPCEnvelope) GetType() IPCEnvelope_MsgType {
if m != nil {
return m.Type
}
return IPCEnvelope_GET_BLOCK_NUMBER
}
func (m *IPCEnvelope) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
type Append struct {
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Append) Reset() { *m = Append{} }
func (m *Append) String() string { return proto.CompactTextString(m) }
func (*Append) ProtoMessage() {}
func (*Append) Descriptor() ([]byte, []int) {
return fileDescriptor_6eb2dac662210585, []int{1}
}
func (m *Append) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Append.Unmarshal(m, b)
}
func (m *Append) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Append.Marshal(b, m, deterministic)
}
func (m *Append) XXX_Merge(src proto.Message) {
xxx_messageInfo_Append.Merge(m, src)
}
func (m *Append) XXX_Size() int {
return xxx_messageInfo_Append.Size(m)
}
func (m *Append) XXX_DiscardUnknown() {
xxx_messageInfo_Append.DiscardUnknown(m)
}
var xxx_messageInfo_Append proto.InternalMessageInfo
func (m *Append) GetKey() []byte {
if m != nil {
return m.Key
}
return nil
}
func (m *Append) GetValue() []byte {
if m != nil {
return m.Value
}
return nil
}
func init() {
proto.RegisterType((*IPCEnvelope)(nil), "IPCEnvelope")
proto.RegisterType((*Append)(nil), "Append")
proto.RegisterEnum("IPCEnvelope_MsgType", IPCEnvelope_MsgType_name, IPCEnvelope_MsgType_value)
}
func init() { proto.RegisterFile("ipc.proto", fileDescriptor_6eb2dac662210585) }
var fileDescriptor_6eb2dac662210585 = []byte{
// 240 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x90, 0x41, 0x4b, 0xc3, 0x40,
0x10, 0x85, 0xdd, 0x26, 0x4d, 0x70, 0x5a, 0x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