package
1.0.0-alpha
Repository: https://github.com/leonlxy/hyperledger.git
Documentation: pkg.go.dev

# Functions

NewRuleSet creates a new RuleSet with the given ordered list of Rules.

# Constants

Accept indicates that the message should be processed.
Forward indicates that the rule could not determine the correct course of action.
Reject indicates that the message should not be processed.

# Variables

AcceptRule always returns Accept as a result for Apply.
EmptyRejectRule rejects empty messages.
NoopCommitter does nothing on commit and is not isolated.

# Structs

RuleSet is used to apply a collection of rules.

# Interfaces

Committer is returned by postfiltering and should be invoked once the message has been written to the blockchain.
Rule defines a filter function which accepts, rejects, or forwards (to the next rule) an Envelope.

# Type aliases

Action is used to express the output of a rule.