Documentation
¶
Index ¶
Constants ¶
const Prefix string = "ORDERER"
Prefix is the default config prefix for the orderer
Variables ¶
This section is empty.
Functions ¶
func ExactWithDateUnmarshal ¶
ExactWithDateUnmarshal is intended to unmarshal a config file into a structure producing error when extraneous variables are introduced and supporting the time.Duration type
Types ¶
type FileLedger ¶
FileLedger contains config for the File ledger
type General ¶
type General struct {
OrdererType string
LedgerType string
BatchTimeout time.Duration
BatchSize uint
QueueSize uint
MaxWindowSize uint
ListenAddress string
ListenPort uint16
GenesisMethod string
Profile Profile
}
General contains config which should be common among all orderer types
type Kafka ¶
type Kafka struct {
Brokers []string
Topic string
PartitionID int32
Retry Retry
Version sarama.KafkaVersion // TODO For now set this in code
}
Kafka contains config for the Kafka orderer
type RAMLedger ¶
type RAMLedger struct {
HistorySize uint
}
RAMLedger contains config for the RAM ledger
type TopLevel ¶
type TopLevel struct {
General General
RAMLedger RAMLedger
FileLedger FileLedger
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