package
1.4.12
Repository: https://github.com/clming/fabric.git
Documentation: pkg.go.dev

# Functions

CreateStandardChannelFilters creates the set of filters for a normal (non-system) chain.
CreateSystemChannelFilters creates the set of filters for the ordering system chain.
NewDefaultTemplator returns an instance of the DefaultTemplator.
NewExpirationRejectRule returns a rule that rejects messages signed by identities who's identities have expired, given the capability is active.
NewMaintenanceFilter creates a new maintenance filter, at every evaluation, the policy manager and orderer config are called to retrieve the latest version of the policy and config.
NewRuleSet creates a new RuleSet with the given ordered list of Rules.
NewSigFilter creates a new signature filter, at every evaluation, the policy manager is called to retrieve the latest version of the policy.
NewSizeFilter creates a size filter which rejects messages larger than maxBytes.
NewStandardChannel creates a new standard message processor.
NewSystemChannel creates a new system channel message processor.
NewSystemChannelFilter returns a new instance of a *SystemChainFilter.

# Constants

ConfigMsg indicates message of type ORDERER_TRANSACTION or CONFIG.
ConfigUpdateMsg indicates messages of type CONFIG_UPDATE.
NormalMsg is the class of standard (endorser or otherwise non-config) messages.

# Variables

AcceptRule always returns Accept as a result for Apply.
EmptyRejectRule rejects empty messages.
ErrChannelDoesNotExist is returned by the system channel for transactions which are not for the system channel ID and are not attempting to create a new channel.
ErrEmptyMessage is returned by the empty message filter on rejection.
ErrMaintenanceMode is returned when transactions are rejected because the orderer is in "maintenance mode", as defined by ConsensusType.State != NORMAL.
ErrPermissionDenied is returned by errors which are caused by transactions which are not permitted due to an authorization failure.

# Structs

DefaultTemplator implements the ChannelConfigTemplator interface and is the one used in production deployments.
MaintenanceFilter checks whether the orderer config ConsensusType is in maintenance mode, and if it is, validates that the transaction is signed by the orderer org admin.
MaxBytesRule implements the Rule interface.
RuleSet is used to apply a collection of rules.
SigFilter stores the name of the policy to apply to deliver requests to determine whether a client is authorized.
StandardChannel implements the Processor interface for standard extant channels.
SystemChainFilter implements the filter.Rule interface.
SystemChannel implements the Processor interface for the system channel.

# Interfaces

ChainCreator defines the methods necessary to simulate channel creation.
ChannelConfigTemplator can be used to generate config templates.
DefaultTemplatorSupport is the subset of the channel config required by the DefaultTemplator.
LimitedSupport defines the subset of the channel resources required by the systemchannel filter.
MaintenanceFilterSupport provides the resources required for the maintenance filter.
Processor provides the methods necessary to classify and process any message which arrives through the Broadcast interface.
Rule defines a filter function which accepts, rejects, or forwards (to the next rule) an Envelope.
SigFilterSupport provides the resources required for the signature filter.
SizeFilterResources defines the subset of the channel resources required to create this filter.
StandardChannelSupport includes the resources needed for the StandardChannel processor.

# Type aliases

Classification represents the possible message types for the system.