代码拉取完成,页面将自动刷新
/*
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package fabricconfig
import "time"
type ConfigTx struct {
Organizations []*Organization `yaml:"Organizations,omitempty"`
Capabilities *Capabilities `yaml:"Capabilities,omitempty"`
Application *Application `yaml:"Application,omitempty"`
Orderer *ConfigTxOrderer `yaml:"Orderer,omitempty"`
Channel *Channel `yaml:"Channel,omitempty"`
Profiles map[string]*Channel `yaml:"Profiles,omitempty"`
ExtraProperties map[string]interface{} `yaml:",inline,omitempty"`
}
type Organization struct {
Name string `yaml:"Name,omitempty"`
SkipAsForeign bool `yaml:"SkipAsForeign,omitempty"`
ID string `yaml:"ID,omitempty"`
MSPDir string `yaml:"MSPDir,omitempty"`
Policies map[string]*Policy `yaml:"Policies,omitempty"`
OrdererEndpoints []string `yaml:"OrdererEndpoints,omitempty"`
AnchorPeers []*AnchorPeer `yaml:"AnchorPeers,omitempty"`
ExtraProperties map[string]interface{} `yaml:",inline,omitempty"`
}
type Policy struct {
Type string `yaml:"Type,omitempty"`
Rule string `yaml:"Rule,omitempty"`
ExtraProperties map[string]interface{} `yaml:",inline,omitempty"`
}
type Capabilities struct {
Channel map[string]bool `yaml:"Channel,omitempty"`
Orderer map[string]bool `yaml:"Orderer,omitempty"`
Application map[string]bool `yaml:"Application,omitempty"`
ExtraProperties map[string]interface{} `yaml:",inline,omitempty"`
}
type AnchorPeer struct {
Host string `yaml:"Host,omitempty"`
Port int `yaml:"Port,omitempty"`
ExtraProperties map[string]interface{} `yaml:",inline,omitempty"`
}
type Application struct {
ACLs map[string]string `yaml:"ACLs,omitempty"`
Organizations []*Organization `yaml:"Organizations,omitempty"`
Policies map[string]*Policy `yaml:"Policies,omitempty"`
Capabilities map[string]bool `yaml:"Capabilities,omitempty"`
ExtraProperties map[string]interface{} `yaml:",inline,omitempty"`
}
type ConfigTxOrderer struct {
OrdererType string `yaml:"OrdererType,omitempty"`
BatchTimeout time.Duration `yaml:"BatchTimeout,omitempty"`
BatchSize *BatchSize `yaml:"BatchSize,omitempty"`
Kafka *ConfigTxKafka `yaml:"Kafka,omitempty"`
EtcdRaft *ConfigTxEtcdRaft `yaml:"EtcdRaft,omitempty"`
Organizations []*Organization `yaml:"Organizations,omitempty"`
Policies map[string]*Policy `yaml:"Policies,omitempty"`
Capabilities map[string]bool `yaml:"Capabilities,omitempty"`
ExtraProperties map[string]interface{} `yaml:",inline,omitempty"`
}
type BatchSize struct {
MaxMessageCount string `yaml:"MaxMessageCount,omitempty"`
AbsoluteMaxBytes string `yaml:"AbsoluteMaxBytes,omitempty"`
PreferredMaxBytes string `yaml:"PreferredMaxBytes,omitempty"`
ExtraProperties map[string]interface{} `yaml:",inline,omitempty"`
}
type ConfigTxKafka struct {
Brokers []string `yaml:"Brokers,omitempty"`
ExtraProperties map[string]interface{} `yaml:",inline,omitempty"`
}
type ConfigTxEtcdRaft struct {
Consenters []*Consenter `yaml:"Consenters,omitempty"`
Options *EtcdRaftOptions `yaml:"EtcdRaftOptions,omitempty"`
ExtraProperties map[string]interface{} `yaml:",inline,omitempty"`
}
type Consenter struct {
Host string `yaml:"Host,omitempty"`
Port int `yaml:"Port,omitempty"`
ClientTLSCert string `yaml:"ClientTLSCert,omitempty"`
ServerTLSCert string `yaml:"ServerTLSCert,omitempty"`
ExtraProperties map[string]interface{} `yaml:",inline,omitempty"`
}
type EtcdRaftOptions struct {
TickInterval string `yaml:"TickInterval,omitempty"`
ElectionTick string `yaml:"ElectionTick,omitempty"`
HeartbeatTick string `yaml:"HeartbeatTick,omitempty"`
MaxInflightBlocks string `yaml:"MaxInflightBlocks,omitempty"`
SnapshotIntervalSize string `yaml:"SnapshotIntervalSize,omitempty"`
ExtraProperties map[string]interface{} `yaml:",inline,omitempty"`
}
type Channel struct {
Orderer *ConfigTxOrderer `yaml:"Orderer,omitempty"`
Application *Application `yaml:"Application,omitempty"`
Policies map[string]*Policy `yaml:"Policies,omitempty"`
Capabilities map[string]bool `yaml:"Capabilities,omitempty"`
Consortiums map[string]*Consortium `yaml:"Consortiums,omitempty"`
ExtraProperties map[string]interface{} `yaml:",inline,omitempty"`
}
type Consortium struct {
Organizations []*Organization `yaml:"Organizations,omitempty"`
ExtraProperties map[string]interface{} `yaml:",inline,omitempty"`
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。