Documentation
¶
Index ¶
Constants ¶
const Prefix string = "ORDERER"
Prefix is the default config prefix for the orderer
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileLedger ¶
FileLedger contains config for the File ledger
type General ¶
type General struct {
LedgerType string
ListenAddress string
ListenPort uint16
TLS TLS
GenesisMethod string
GenesisProfile string
GenesisFile string
Profile Profile
LogLevel string
LocalMSPDir string
LocalMSPID string
BCCSP *bccsp.FactoryOpts
}
General contains config which should be common among all orderer types
type Genesis ¶
Genesis is a deprecated structure which was used to put values into the genesis block, but this is now handled elsewhere SBFT did not reference these values via the genesis block however so it is being left here for backwards compatibility purposes
type Kafka ¶
type Kafka struct {
Retry Retry
Verbose bool
Version sarama.KafkaVersion
TLS TLS
}
Kafka contains config for the Kafka orderer
type Profile ¶
Profile contains configuration for Go pprof profiling
type RAMLedger ¶
type RAMLedger struct {
HistorySize uint
}
RAMLedger contains config for the RAM ledger
type Retry ¶
Retry contains config for the reconnection attempts to the Kafka brokers
type RuntimeAndGenesis ¶
type RuntimeAndGenesis struct {
// contains filtered or unexported fields
}
type SbftLocal ¶
SbftLocal contains config for the SBFT peer/replica
type TLS ¶
type TLS struct {
Enabled bool
PrivateKey string
Certificate string
RootCAs []string
ClientAuthEnabled bool
ClientRootCAs []string
}
TLS contains config used to configure TLS
type TopLevel ¶
type TopLevel struct {
General General
RAMLedger RAMLedger
FileLedger FileLedger
Kafka Kafka
Genesis Genesis
SbftLocal SbftLocal
}
TopLevel directly corresponds to the orderer config yaml Note, for non 1-1 mappings, you may append something like `mapstructure:"weirdFoRMat"` to modify the default mapping, see the "Unmarshal" section of https://github.com/spf13/viper for more info
Source Files
¶
- config.go