-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathzorums_multicast_gorums.pb.go
81 lines (65 loc) · 2.37 KB
/
zorums_multicast_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
// Code generated by protoc-gen-gorums. DO NOT EDIT.
// versions:
// protoc-gen-gorums v0.8.0-devel
// protoc v5.29.3
// source: zorums.proto
package dev
import (
context "context"
gorums "github.com/relab/gorums"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
emptypb "google.golang.org/protobuf/types/known/emptypb"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = gorums.EnforceVersion(8 - gorums.MinVersion)
// Verify that the gorums runtime is sufficiently up-to-date.
_ = gorums.EnforceVersion(gorums.MaxVersion - 8)
)
// Multicast plain. Response type is not needed here.
func (c *Configuration) Multicast(ctx context.Context, in *Request, opts ...gorums.CallOption) {
cd := gorums.QuorumCallData{
Message: in,
Method: "dev.ZorumsService.Multicast",
}
c.RawConfiguration.Multicast(ctx, cd, opts...)
}
// MulticastPerNodeArg with per_node_arg option.
func (c *Configuration) MulticastPerNodeArg(ctx context.Context, in *Request, f func(*Request, uint32) *Request, opts ...gorums.CallOption) {
cd := gorums.QuorumCallData{
Message: in,
Method: "dev.ZorumsService.MulticastPerNodeArg",
}
cd.PerNodeArgFn = func(req protoreflect.ProtoMessage, nid uint32) protoreflect.ProtoMessage {
return f(req.(*Request), nid)
}
c.RawConfiguration.Multicast(ctx, cd, opts...)
}
// Multicast2 is testing whether multiple streams work.
func (c *Configuration) Multicast2(ctx context.Context, in *Request, opts ...gorums.CallOption) {
cd := gorums.QuorumCallData{
Message: in,
Method: "dev.ZorumsService.Multicast2",
}
c.RawConfiguration.Multicast(ctx, cd, opts...)
}
// Reference imports to suppress errors if they are not otherwise used.
var _ emptypb.Empty
// Multicast3 is testing imported message type.
func (c *Configuration) Multicast3(ctx context.Context, in *Request, opts ...gorums.CallOption) {
cd := gorums.QuorumCallData{
Message: in,
Method: "dev.ZorumsService.Multicast3",
}
c.RawConfiguration.Multicast(ctx, cd, opts...)
}
// Reference imports to suppress errors if they are not otherwise used.
var _ emptypb.Empty
// Multicast4 is testing imported message type.
func (c *Configuration) Multicast4(ctx context.Context, in *emptypb.Empty, opts ...gorums.CallOption) {
cd := gorums.QuorumCallData{
Message: in,
Method: "dev.ZorumsService.Multicast4",
}
c.RawConfiguration.Multicast(ctx, cd, opts...)
}