Documentation
¶
Index ¶
Constants ¶
View Source
const (
// Prefix identifies the prefix for the orderer-related ENV vars.
Prefix = "ORDERER"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileLedger ¶
FileLedger contains configuration for the file-based 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 Kafka ¶
type Kafka struct {
Retry Retry
Verbose bool
Version sarama.KafkaVersion // TODO Move this to global config
TLS TLS
}
Kafka contains configuration for the Kafka-based orderer.
type RAMLedger ¶
type RAMLedger struct {
HistorySize uint
}
RAMLedger contains configuration for the RAM ledger.
type TLS ¶
type TLS struct {
Enabled bool
PrivateKey string
Certificate string
RootCAs []string
ClientAuthEnabled bool
ClientRootCAs []string
}
TLS contains config for TLS connections.
type TopLevel ¶
type TopLevel struct {
General General
FileLedger FileLedger
RAMLedger RAMLedger
Kafka Kafka
}
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
Click to show internal directories.
Click to hide internal directories.