This repository has been archived by the owner on Jun 17, 2024. It is now read-only.
forked from hyperledger/fabric
-
Notifications
You must be signed in to change notification settings - Fork 2
/
configuration.pb.go
141 lines (121 loc) · 7.72 KB
/
configuration.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
// Code generated by protoc-gen-go.
// source: orderer/configuration.proto
// DO NOT EDIT!
package orderer
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
type ConsensusType struct {
Type string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
}
func (m *ConsensusType) Reset() { *m = ConsensusType{} }
func (m *ConsensusType) String() string { return proto.CompactTextString(m) }
func (*ConsensusType) ProtoMessage() {}
func (*ConsensusType) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
type BatchSize struct {
// Simply specified as number of messages for now, in the future
// we may want to allow this to be specified by size in bytes
MaxMessageCount uint32 `protobuf:"varint,1,opt,name=maxMessageCount" json:"maxMessageCount,omitempty"`
// The byte count of the serialized messages in a batch cannot
// exceed this value.
AbsoluteMaxBytes uint32 `protobuf:"varint,2,opt,name=absoluteMaxBytes" json:"absoluteMaxBytes,omitempty"`
// The byte count of the serialized messages in a batch should not
// exceed this value.
PreferredMaxBytes uint32 `protobuf:"varint,3,opt,name=preferredMaxBytes" json:"preferredMaxBytes,omitempty"`
}
func (m *BatchSize) Reset() { *m = BatchSize{} }
func (m *BatchSize) String() string { return proto.CompactTextString(m) }
func (*BatchSize) ProtoMessage() {}
func (*BatchSize) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
type BatchTimeout struct {
// Any duration string parseable by ParseDuration():
// https://golang.org/pkg/time/#ParseDuration
Timeout string `protobuf:"bytes,1,opt,name=timeout" json:"timeout,omitempty"`
}
func (m *BatchTimeout) Reset() { *m = BatchTimeout{} }
func (m *BatchTimeout) String() string { return proto.CompactTextString(m) }
func (*BatchTimeout) ProtoMessage() {}
func (*BatchTimeout) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} }
// When submitting a new chain configuration transaction to create a new chain,
// the first configuration item must be of type Orderer with Key CreationPolicy
// and contents of a Marshaled CreationPolicy. The policy should be set to the
// policy which was supplied by the ordering service for the client's chain
// creation. The digest should be the hash of the concatenation of the remaining
// ConfigurationItem bytes. The signatures of the configuration item should
// satisfy the policy for chain creation.
type CreationPolicy struct {
// The name of the policy which should be used to validate the creation of
// this chain
Policy string `protobuf:"bytes,1,opt,name=policy" json:"policy,omitempty"`
}
func (m *CreationPolicy) Reset() { *m = CreationPolicy{} }
func (m *CreationPolicy) String() string { return proto.CompactTextString(m) }
func (*CreationPolicy) ProtoMessage() {}
func (*CreationPolicy) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{3} }
// ChainCreationPolicyNames is the set of policies which may be invoked for chain creation
type ChainCreationPolicyNames struct {
// A list of policies, in evaluation these are 'or'-ed, note this is not a proper policy
// because implementing referential policies in a general way is difficult, and dangerous
Names []string `protobuf:"bytes,1,rep,name=names" json:"names,omitempty"`
}
func (m *ChainCreationPolicyNames) Reset() { *m = ChainCreationPolicyNames{} }
func (m *ChainCreationPolicyNames) String() string { return proto.CompactTextString(m) }
func (*ChainCreationPolicyNames) ProtoMessage() {}
func (*ChainCreationPolicyNames) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{4} }
// Carries a list of bootstrap brokers, i.e. this is not the exclusive set of
// brokers an ordering service
type KafkaBrokers struct {
// Each broker here should be identified using the (IP|host):port notation,
// e.g. 127.0.0.1:7050, or localhost:7050 are valid entries
Brokers []string `protobuf:"bytes,1,rep,name=brokers" json:"brokers,omitempty"`
}
func (m *KafkaBrokers) Reset() { *m = KafkaBrokers{} }
func (m *KafkaBrokers) String() string { return proto.CompactTextString(m) }
func (*KafkaBrokers) ProtoMessage() {}
func (*KafkaBrokers) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{5} }
// ChannelRestrictions is the mssage which conveys restrictions on channel creation for an orderer
type ChannelRestrictions struct {
MaxCount uint64 `protobuf:"varint,1,opt,name=max_count,json=maxCount" json:"max_count,omitempty"`
}
func (m *ChannelRestrictions) Reset() { *m = ChannelRestrictions{} }
func (m *ChannelRestrictions) String() string { return proto.CompactTextString(m) }
func (*ChannelRestrictions) ProtoMessage() {}
func (*ChannelRestrictions) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{6} }
func init() {
proto.RegisterType((*ConsensusType)(nil), "orderer.ConsensusType")
proto.RegisterType((*BatchSize)(nil), "orderer.BatchSize")
proto.RegisterType((*BatchTimeout)(nil), "orderer.BatchTimeout")
proto.RegisterType((*CreationPolicy)(nil), "orderer.CreationPolicy")
proto.RegisterType((*ChainCreationPolicyNames)(nil), "orderer.ChainCreationPolicyNames")
proto.RegisterType((*KafkaBrokers)(nil), "orderer.KafkaBrokers")
proto.RegisterType((*ChannelRestrictions)(nil), "orderer.ChannelRestrictions")
}
func init() { proto.RegisterFile("orderer/configuration.proto", fileDescriptor1) }
var fileDescriptor1 = []byte{
// 333 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x64, 0x91, 0x5f, 0x6b, 0xa3, 0x40,
0x14, 0xc5, 0x71, 0x93, 0x4d, 0xd6, 0xcb, 0x66, 0xff, 0xcc, 0x2e, 0x45, 0xc8, 0x4b, 0xb0, 0x2f,
0x52, 0x42, 0x2c, 0xed, 0x37, 0xd0, 0xc7,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