package
6.0.0-beta.10+incompatible
Repository: https://github.com/nuts-foundation/nuts-node.git
Documentation: pkg.go.dev
# Functions
DefaultConfig returns the default NetworkEngine configuration.
NewMockTransactions creates a new mock instance.
NewNetworkInstance creates a new Network engine instance.
NewTestNetworkInstance creates a new Transactions instance that writes it data to a test directory.
TestNetworkConfig creates new network config with a test directory as data path.
TransactionTemplate creates a new Template with the given required properties.
WithSelectionFilter creates a SubscriberOption that creates a dag.NotifierOption with the given filter.
# Constants
AnyPayloadType is a wildcard that matches with any payload type.
MaxReprocessBufferSize is the maximum number of events for Nats resulting from a Reprocess.
ModuleName specifies the name of this module.
# Structs
Config holds the config for Transactions.
MockTransactions is a mock of Transactions interface.
MockTransactionsMockRecorder is the mock recorder for MockTransactions.
Network implements Transactions interface and Engine functions.
ReprocessReport describes the reprocess exection.
Template is used to build a spec for new transactions.
# Interfaces
Transactions is the interface that defines the API for creating, reading and subscribing to Nuts Network transactions.
# Type aliases
EventType defines a type for specifying the kind of events that can be published/subscribed on the Network.
Receiver defines a callback function for processing transactions/payloads received by the DAG.
SubscriberOption creates a dag.NotifierOption.