Documentation ¶
Index ¶
- type Channel
- type ChannelCapabilities
- type MockApplication
- type MockApplicationCapabilities
- func (mac *MockApplicationCapabilities) ACLs() bool
- func (mac *MockApplicationCapabilities) CollectionUpgrade() bool
- func (mac *MockApplicationCapabilities) FabToken() bool
- func (mac *MockApplicationCapabilities) ForbidDuplicateTXIdInBlock() bool
- func (mac *MockApplicationCapabilities) KeyLevelEndorsement() bool
- func (mac *MockApplicationCapabilities) MetadataLifecycle() bool
- func (mac *MockApplicationCapabilities) PrivateChannelData() bool
- func (mac *MockApplicationCapabilities) Supported() error
- func (mac *MockApplicationCapabilities) V1_1Validation() bool
- func (mac *MockApplicationCapabilities) V1_2Validation() bool
- func (mac *MockApplicationCapabilities) V1_3Validation() bool
- type Orderer
- func (o *Orderer) BatchSize() *ab.BatchSize
- func (o *Orderer) BatchTimeout() time.Duration
- func (o *Orderer) Capabilities() channelconfig.OrdererCapabilities
- func (o *Orderer) ConsensusMetadata() []byte
- func (o *Orderer) ConsensusType() string
- func (o *Orderer) KafkaBrokers() []string
- func (o *Orderer) MaxChannelsCount() uint64
- func (o *Orderer) Organizations() map[string]channelconfig.Org
- type OrdererCapabilities
- type Resources
- func (r *Resources) ApplicationConfig() (channelconfig.Application, bool)
- func (r *Resources) ChannelConfig() channelconfig.Channel
- func (r *Resources) ConfigtxValidator() configtx.Validator
- func (r *Resources) ConsortiumsConfig() (channelconfig.Consortiums, bool)
- func (r *Resources) MSPManager() msp.MSPManager
- func (r *Resources) OrdererConfig() (channelconfig.Orderer, bool)
- func (r *Resources) PolicyManager() policies.Manager
- func (r *Resources) ValidateNew(res channelconfig.Resources) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct { // HashingAlgorithmVal func([]byte) []byte // BlockDataHashingStructureWidthVal uint32 // OrdererAddressesVal []string // CapabilitiesVal channelconfig.ChannelCapabilities }
func (*Channel) BlockDataHashingStructureWidth ¶
func (*Channel) Capabilities ¶
func (scm *Channel) Capabilities() channelconfig.ChannelCapabilities
func (*Channel) HashingAlgorithm ¶
func (*Channel) OrdererAddresses ¶
orderAddresses返回orderAddressesVal
type ChannelCapabilities ¶
type ChannelCapabilities struct { //SUPPORTEDER由SUPPORTED()返回 SupportedErr error // MSPVersionVal msp.MSPVersion }
func (*ChannelCapabilities) MSPVersion ¶
func (cc *ChannelCapabilities) MSPVersion() msp.MSPVersion
func (*ChannelCapabilities) Supported ¶
func (cc *ChannelCapabilities) Supported() error
type MockApplication ¶
type MockApplication struct { CapabilitiesRv channelconfig.ApplicationCapabilities Acls map[string]string }
func (*MockApplication) APIPolicyMapper ¶
func (m *MockApplication) APIPolicyMapper() channelconfig.PolicyMapper
func (*MockApplication) Capabilities ¶
func (m *MockApplication) Capabilities() channelconfig.ApplicationCapabilities
func (*MockApplication) Organizations ¶
func (m *MockApplication) Organizations() map[string]channelconfig.ApplicationOrg
func (*MockApplication) PolicyRefForAPI ¶
func (m *MockApplication) PolicyRefForAPI(apiName string) string
type MockApplicationCapabilities ¶
type MockApplicationCapabilities struct { SupportedRv error ForbidDuplicateTXIdInBlockRv bool ACLsRv bool PrivateChannelDataRv bool CollectionUpgradeRv bool V1_1ValidationRv bool V1_2ValidationRv bool MetadataLifecycleRv bool KeyLevelEndorsementRv bool V1_3ValidationRv bool FabTokenRv bool }
func (*MockApplicationCapabilities) ACLs ¶
func (mac *MockApplicationCapabilities) ACLs() bool
func (*MockApplicationCapabilities) CollectionUpgrade ¶
func (mac *MockApplicationCapabilities) CollectionUpgrade() bool
func (*MockApplicationCapabilities) FabToken ¶
func (mac *MockApplicationCapabilities) FabToken() bool
func (*MockApplicationCapabilities) ForbidDuplicateTXIdInBlock ¶
func (mac *MockApplicationCapabilities) ForbidDuplicateTXIdInBlock() bool
func (*MockApplicationCapabilities) KeyLevelEndorsement ¶
func (mac *MockApplicationCapabilities) KeyLevelEndorsement() bool
func (*MockApplicationCapabilities) MetadataLifecycle ¶
func (mac *MockApplicationCapabilities) MetadataLifecycle() bool
func (*MockApplicationCapabilities) PrivateChannelData ¶
func (mac *MockApplicationCapabilities) PrivateChannelData() bool
func (*MockApplicationCapabilities) Supported ¶
func (mac *MockApplicationCapabilities) Supported() error
func (*MockApplicationCapabilities) V1_1Validation ¶
func (mac *MockApplicationCapabilities) V1_1Validation() bool
func (*MockApplicationCapabilities) V1_2Validation ¶
func (mac *MockApplicationCapabilities) V1_2Validation() bool
func (*MockApplicationCapabilities) V1_3Validation ¶
func (mac *MockApplicationCapabilities) V1_3Validation() bool
type Orderer ¶
type Orderer struct { //consensistypeval作为consensistype()的结果返回 ConsensusTypeVal string // ConsensusMetadataVal []byte // BatchSizeVal *ab.BatchSize //batchTimeoutVal作为batchTimeout()的结果返回 BatchTimeoutVal time.Duration // KafkaBrokersVal []string // MaxChannelsCountVal uint64 //OrganizationsVal作为Organizations()的结果返回 OrganizationsVal map[string]channelconfig.Org // CapabilitiesVal channelconfig.OrdererCapabilities }
func (*Orderer) BatchTimeout ¶
func (*Orderer) Capabilities ¶
func (o *Orderer) Capabilities() channelconfig.OrdererCapabilities
func (*Orderer) ConsensusMetadata ¶
func (*Orderer) ConsensusType ¶
func (*Orderer) KafkaBrokers ¶
KafkAbrokers返回KafkAbrokersVal
func (*Orderer) MaxChannelsCount ¶
func (*Orderer) Organizations ¶
func (o *Orderer) Organizations() map[string]channelconfig.Org
type OrdererCapabilities ¶
type OrdererCapabilities struct { //SUPPORTEDER由SUPPORTED()返回 SupportedErr error // PredictableChannelTemplateVal bool //通过重新提交()返回重新提交值 ResubmissionVal bool //expirationval由expirationcheck()返回 ExpirationVal bool }
ordercapabilities模拟channelconfig.ordercapabilities接口
func (*OrdererCapabilities) ExpirationCheck ¶
func (oc *OrdererCapabilities) ExpirationCheck() bool
ExpirationCheck指定订购方是否检查标识过期检查 验证消息时
func (*OrdererCapabilities) PredictableChannelTemplate ¶
func (oc *OrdererCapabilities) PredictableChannelTemplate() bool
func (*OrdererCapabilities) Resubmission ¶
func (oc *OrdererCapabilities) Resubmission() bool
type Resources ¶
type Resources struct { // ConfigtxValidatorVal configtx.Validator // PolicyManagerVal policies.Manager // ChannelConfigVal channelconfig.Channel // OrdererConfigVal channelconfig.Orderer // ApplicationConfigVal channelconfig.Application // ConsortiumsConfigVal channelconfig.Consortiums //mspmanagerval作为mspmanager()的结果返回 MSPManagerVal msp.MSPManager //validatenewr作为validatenew的结果返回 ValidateNewErr error }
func (*Resources) ApplicationConfig ¶
func (r *Resources) ApplicationConfig() (channelconfig.Application, bool)
func (*Resources) ChannelConfig ¶
func (r *Resources) ChannelConfig() channelconfig.Channel
func (*Resources) ConfigtxValidator ¶
func (*Resources) ConsortiumsConfig ¶
func (r *Resources) ConsortiumsConfig() (channelconfig.Consortiums, bool)
func (*Resources) MSPManager ¶
func (r *Resources) MSPManager() msp.MSPManager
func (*Resources) OrdererConfig ¶
func (r *Resources) OrdererConfig() (channelconfig.Orderer, bool)
func (*Resources) PolicyManager ¶
func (*Resources) ValidateNew ¶
func (r *Resources) ValidateNew(res channelconfig.Resources) error
validateNew返回validatener
Click to show internal directories.
Click to hide internal directories.