Documentation ¶
Index ¶
Constants ¶
View Source
const ( // SampleInsecureProfile references the sample profile which does not include any MSPs and uses solo for consensus SampleInsecureProfile = "SampleInsecureSolo" // SampleSingleMSPSoloProfile references the sample profile which includes only the sample MSP and uses solo for consensus SampleSingleMSPSoloProfile = "SampleSingleMSPSolo" )
View Source
const Prefix string = "CONFIGTX"
Prefix is the default config prefix for the orderer
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnchorPeer ¶
type Application ¶
type Application struct {
Organizations []*Organization `yaml:"Organizations"`
}
Application encodes the configuration needed for the config transaction
type ApplicationOrganization ¶
type ApplicationOrganization struct {
Organization `yaml:"Organization"`
}
type BatchSize ¶
type BatchSize struct { MaxMessageCount uint32 `yaml:"MaxMessageSize"` AbsoluteMaxBytes uint32 `yaml:"AbsoluteMaxBytes"` PreferredMaxBytes uint32 `yaml:"PreferredMaxBytes"` }
BatchSize contains configuration affecting the size of batches
type Kafka ¶
type Kafka struct {
Brokers []string `yaml:"Brokers"`
}
Kafka contains config for the Kafka orderer
type Orderer ¶
type Orderer struct { OrdererType string `yaml:"OrdererType"` Addresses []string `yaml:"Addresses"` BatchTimeout time.Duration `yaml:"BatchTimeout"` BatchSize BatchSize `yaml:"BatchSize"` Kafka Kafka `yaml:"Kafka"` Organizations []*Organization `yaml:"Organizations"` MaxChannels uint64 `yaml:"MaxChannels"` }
Orderer contains config which is used for orderer genesis by the provisional bootstrapper
type Organization ¶
type Organization struct { Name string `yaml:"Name"` ID string `yaml:"ID"` MSPDir string `yaml:"MSPDir"` BCCSP *bccsp.FactoryOpts `yaml:"BCCSP"` // Note, the viper deserialization does not seem to care for // embedding of types, so we use one organization structure for // both orderers and applications AnchorPeers []*AnchorPeer `yaml:"AnchorPeers"` }
type Profile ¶
type Profile struct { Application *Application `yaml:"Application"` Orderer *Orderer `yaml:"Orderer"` }
TopLevel contains the genesis structures for use by the provisional bootstrapper
type TopLevel ¶
type TopLevel struct { Profiles map[string]*Profile `yaml:"Profiles"` Organizations []*Organization `yaml:"Organizations"` Application *Application `yaml:"Application"` Orderer *Orderer `yaml:"Orderer"` }
TopLevel contains the genesis structures for use by the provisional bootstrapper
Click to show internal directories.
Click to hide internal directories.