/
zorums_types_gorums.pb.go
184 lines (161 loc) · 5.61 KB
/
zorums_types_gorums.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
// Code generated by protoc-gen-gorums. DO NOT EDIT.
// versions:
// protoc-gen-gorums v0.7.0-devel
// protoc v3.19.2
// source: zorums.proto
package dev
import (
gorums "github.com/relab/gorums"
emptypb "google.golang.org/protobuf/types/known/emptypb"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = gorums.EnforceVersion(7 - gorums.MinVersion)
// Verify that the gorums runtime is sufficiently up-to-date.
_ = gorums.EnforceVersion(gorums.MaxVersion - 7)
)
type internalEmpty struct {
nid uint32
reply *emptypb.Empty
err error
}
type internalResponse struct {
nid uint32
reply *Response
err error
}
// AsyncEmpty is a async object for processing replies.
type AsyncEmpty struct {
*gorums.Async
}
// Get returns the reply and any error associated with the called method.
// The method blocks until a reply or error is available.
func (f *AsyncEmpty) Get() (*emptypb.Empty, error) {
resp, err := f.Async.Get()
if err != nil {
return nil, err
}
return resp.(*emptypb.Empty), err
}
// AsyncMyResponse is a async object for processing replies.
type AsyncMyResponse struct {
*gorums.Async
}
// Get returns the reply and any error associated with the called method.
// The method blocks until a reply or error is available.
func (f *AsyncMyResponse) Get() (*MyResponse, error) {
resp, err := f.Async.Get()
if err != nil {
return nil, err
}
return resp.(*MyResponse), err
}
// AsyncResponse is a async object for processing replies.
type AsyncResponse struct {
*gorums.Async
}
// Get returns the reply and any error associated with the called method.
// The method blocks until a reply or error is available.
func (f *AsyncResponse) Get() (*Response, error) {
resp, err := f.Async.Get()
if err != nil {
return nil, err
}
return resp.(*Response), err
}
// CorrectableEmpty is a correctable object for processing replies.
type CorrectableEmpty struct {
*gorums.Correctable
}
// Get returns the reply, level and any error associated with the
// called method. The method does not block until a (possibly
// intermediate) reply or error is available. Level is set to LevelNotSet if no
// reply has yet been received. The Done or Watch methods should be used to
// ensure that a reply is available.
func (c *CorrectableEmpty) Get() (*emptypb.Empty, int, error) {
resp, level, err := c.Correctable.Get()
if err != nil {
return nil, level, err
}
return resp.(*emptypb.Empty), level, err
}
// CorrectableMyResponse is a correctable object for processing replies.
type CorrectableMyResponse struct {
*gorums.Correctable
}
// Get returns the reply, level and any error associated with the
// called method. The method does not block until a (possibly
// intermediate) reply or error is available. Level is set to LevelNotSet if no
// reply has yet been received. The Done or Watch methods should be used to
// ensure that a reply is available.
func (c *CorrectableMyResponse) Get() (*MyResponse, int, error) {
resp, level, err := c.Correctable.Get()
if err != nil {
return nil, level, err
}
return resp.(*MyResponse), level, err
}
// CorrectableResponse is a correctable object for processing replies.
type CorrectableResponse struct {
*gorums.Correctable
}
// Get returns the reply, level and any error associated with the
// called method. The method does not block until a (possibly
// intermediate) reply or error is available. Level is set to LevelNotSet if no
// reply has yet been received. The Done or Watch methods should be used to
// ensure that a reply is available.
func (c *CorrectableResponse) Get() (*Response, int, error) {
resp, level, err := c.Correctable.Get()
if err != nil {
return nil, level, err
}
return resp.(*Response), level, err
}
// CorrectableStreamEmpty is a correctable object for processing replies.
type CorrectableStreamEmpty struct {
*gorums.Correctable
}
// Get returns the reply, level and any error associated with the
// called method. The method does not block until a (possibly
// intermediate) reply or error is available. Level is set to LevelNotSet if no
// reply has yet been received. The Done or Watch methods should be used to
// ensure that a reply is available.
func (c *CorrectableStreamEmpty) Get() (*emptypb.Empty, int, error) {
resp, level, err := c.Correctable.Get()
if err != nil {
return nil, level, err
}
return resp.(*emptypb.Empty), level, err
}
// CorrectableStreamMyResponse is a correctable object for processing replies.
type CorrectableStreamMyResponse struct {
*gorums.Correctable
}
// Get returns the reply, level and any error associated with the
// called method. The method does not block until a (possibly
// intermediate) reply or error is available. Level is set to LevelNotSet if no
// reply has yet been received. The Done or Watch methods should be used to
// ensure that a reply is available.
func (c *CorrectableStreamMyResponse) Get() (*MyResponse, int, error) {
resp, level, err := c.Correctable.Get()
if err != nil {
return nil, level, err
}
return resp.(*MyResponse), level, err
}
// CorrectableStreamResponse is a correctable object for processing replies.
type CorrectableStreamResponse struct {
*gorums.Correctable
}
// Get returns the reply, level and any error associated with the
// called method. The method does not block until a (possibly
// intermediate) reply or error is available. Level is set to LevelNotSet if no
// reply has yet been received. The Done or Watch methods should be used to
// ensure that a reply is available.
func (c *CorrectableStreamResponse) Get() (*Response, int, error) {
resp, level, err := c.Correctable.Get()
if err != nil {
return nil, level, err
}
return resp.(*Response), level, err
}