github.com/kchristidis/fabric@v1.0.4-0.20171028114726-837acd08cde1/protos/orderer/configuration.proto (about) 1 /* 2 Copyright IBM Corp. 2016 All Rights Reserved. 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 */ 16 17 syntax = "proto3"; 18 19 option go_package = "github.com/hyperledger/fabric/protos/orderer"; 20 option java_package = "org.hyperledger.fabric.protos.orderer"; 21 22 package orderer; 23 24 25 // The orderer config is specified by the following convention: 26 // For a configuration item with key "Key" 27 // the encoded value is a a proto message of type "Key" 28 // For example, for the configuration item of name "ConsensusType" 29 // the encoded value is the proto message "ConsensusType" 30 31 message ConsensusType { 32 string type = 1; 33 } 34 35 message BatchSize { 36 // Simply specified as number of messages for now, in the future 37 // we may want to allow this to be specified by size in bytes 38 uint32 max_message_count = 1; 39 // The byte count of the serialized messages in a batch cannot 40 // exceed this value. 41 uint32 absolute_max_bytes = 2; 42 // The byte count of the serialized messages in a batch should not 43 // exceed this value. 44 uint32 preferred_max_bytes = 3; 45 } 46 47 message BatchTimeout { 48 // Any duration string parseable by ParseDuration(): 49 // https://golang.org/pkg/time/#ParseDuration 50 string timeout = 1; 51 } 52 53 // Carries a list of bootstrap brokers, i.e. this is not the exclusive set of 54 // brokers an ordering service 55 message KafkaBrokers { 56 // Each broker here should be identified using the (IP|host):port notation, 57 // e.g. 127.0.0.1:7050, or localhost:7050 are valid entries 58 repeated string brokers = 1; 59 } 60 61 // ChannelRestrictions is the mssage which conveys restrictions on channel creation for an orderer 62 message ChannelRestrictions { 63 uint64 max_count = 1; // The max count of channels to allow to be created, a value of 0 indicates no limit 64 }