3 Star 6 Fork 7

Gitee 极速下载/Hyperledger fabric

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/hyperledger/fabric
克隆/下载
orderer.go 4.37 KB
一键复制 编辑 原始数据 按行查看 历史
/*
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package fabricconfig
import "time"
type Orderer struct {
General *General `yaml:"General,omitempty"`
FileLedger *FileLedger `yaml:"FileLedger,omitempty"`
RAMLedger *RAMLedger `yaml:"RAMLedger,omitempty"`
Kafka *Kafka `yaml:"Kafka,omitempty"`
Operations *OrdererOperations `yaml:"Operations,omitempty"`
ExtraProperties map[string]interface{} `yaml:",inline,omitempty"`
}
type General struct {
LedgerType string `yaml:"LedgerType,omitempty"`
ListenAddress string `yaml:"ListenAddress,omitempty"`
ListenPort int `yaml:"ListenPort,omitempty"`
TLS *OrdererTLS `yaml:"TLS,omitempty"`
Keepalive *OrdererKeepalive `yaml:"Keepalive,omitempty"`
GenesisMethod string `yaml:"GenesisMethod,omitempty"`
GenesisProfile string `yaml:"GenesisProfile,omitempty"`
GenesisFile string `yaml:"GenesisFile,omitempty"`
LocalMSPDir string `yaml:"LocalMSPDir,omitempty"`
LocalMSPID string `yaml:"LocalMSPID,omitempty"`
Profile *OrdererProfile `yaml:"Profile,omitempty"`
BCCSP *BCCSP `yaml:"BCCSP,omitempty"`
Authentication *OrdererAuthentication `yaml:"Authentication,omitempty"`
ExtraProperties map[string]interface{} `yaml:",inline,omitempty"`
}
type OrdererTLS struct {
Enabled bool `yaml:"Enabled"`
PrivateKey string `yaml:"PrivateKey,omitempty"`
Certificate string `yaml:"Certificate,omitempty"`
RootCAs []string `yaml:"RootCAs,omitempty"`
ClientAuthRequired bool `yaml:"ClientAuthRequired"`
ClientRootCAs []string `yaml:"ClientRootCAs,omitempty"`
}
type OrdererSASLPlain struct {
Enabled bool `yaml:"Enabled"`
User string `yaml:"User,omitempty"`
Password string `yaml:"Password,omitempty"`
}
type OrdererKeepalive struct {
ServerMinInterval time.Duration `yaml:"ServerMinInterval,omitempty"`
ServerInterval time.Duration `yaml:"ServerInterval,omitempty"`
ServerTimeout time.Duration `yaml:"ServerTimeout,omitempty"`
}
type OrdererProfile struct {
Enabled bool `yaml:"Enabled"`
Address string `yaml:"Address,omitempty"`
}
type OrdererAuthentication struct {
TimeWindow time.Duration `yaml:"TimeWindow,omitempty"`
}
type OrdererTopic struct {
ReplicationFactor int16
}
type FileLedger struct {
Location string `yaml:"Location,omitempty"`
Prefix string `yaml:"Prefix,omitempty"`
}
type RAMLedger struct {
HistorySize int `yaml:"HistorySize,omitempty"`
}
type Kafka struct {
Retry *Retry `yaml:"Retry,omitempty"`
Verbose bool `yaml:"Verbose"`
TLS *OrdererTLS `yaml:"TLS,omitempty"`
SASLPlain *OrdererSASLPlain `yaml:"SASLPlain,omitempty"`
Topic *OrdererTopic `yaml:"Topic,omitempty"`
}
type Retry struct {
ShortInterval time.Duration `yaml:"ShortInterval,omitempty"`
ShortTotal time.Duration `yaml:"ShortTotal,omitempty"`
LongInterval time.Duration `yaml:"LongInterval,omitempty"`
LongTotal time.Duration `yaml:"LongTotal,omitempty"`
NetworkTimeouts *NetworkTimeouts `yaml:"NetworkTimeouts,omitempty"`
Metadata *Backoff `yaml:"Metadata,omitempty"`
Producer *Backoff `yaml:"Producer,omitempty"`
Consumer *Backoff `yaml:"Consumer,omitempty"`
}
type NetworkTimeouts struct {
DialTimeout time.Duration `yaml:"DialTimeout,omitempty"`
ReadTimeout time.Duration `yaml:"ReadTimeout,omitempty"`
WriteTimeout time.Duration `yaml:"WriteTimeout,omitempty"`
}
type Backoff struct {
RetryBackoff time.Duration `yaml:"RetryBackoff,omitempty"`
RetryMax int `yaml:"RetryMax,omitempty"`
}
type OrdererOperations struct {
ListenAddress string `yaml:"ListenAddress,omitempty"`
Metrics *OrdererMetrics `yaml:"Metrics,omitempty"`
TLS *OrdererTLS `yaml:"TLS"`
}
type OrdererMetrics struct {
Provider string `yaml:"Provider"`
Statsd *OrdererStatsd `yaml:"Statsd,omitempty"`
}
type OrdererStatsd struct {
Network string `yaml:"Network,omitempty"`
Address string `yaml:"Address,omitempty"`
WriteInterval time.Duration `yaml:"WriteInterval,omitempty"`
Prefix string `yaml:"Prefix,omitempty"`
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/fabric.git
git@gitee.com:mirrors/fabric.git
mirrors
fabric
Hyperledger fabric
v1.4.0-rc2

搜索帮助

0d507c66 1850385 C8b1a773 1850385