package
0.5.0
Repository: https://github.com/goplugin/pluginv2.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

NewChainSet returns a new ChainSet for the given ChainSetOpts.
NewChainSetImmut returns a new immutable ChainSet for the given ChainSetOpts.
NewORM returns an ORM backed by q, for the tables <prefix>_chains and <prefix>_nodes with column <prefix>_chain_id.
NewORMImmut returns an ORM backed by q, for the tables <prefix>_chains and <prefix>_nodes with column <prefix>_chain_id.

# Variables

ErrChainIDEmpty is returned when chain is required but was empty.
ErrChainIDInvalid is returned when a chain id does not match any configured chains.

# Structs

DBChain is a generic DB chain for an ID and Config.

# Interfaces

No description provided by the author
ChainService is a live, runtime chain instance, with supporting services.
ChainSet manages a live set of ChainService instances.
ChainSetOpts holds options for configuring a ChainSet via NewChainSet.
No description provided by the author
Config types should have fields for chain configuration, and implement sql.Scanner and driver.Valuer for persistence in JSON format.
DBChainSet is a generic interface for DBChain[I, C] configuration.
DBNodeSet is a generic interface for Node configuration.
No description provided by the author
ORM manages chains and nodes.

# Type aliases

ID types represent unique identifiers within a particular chain type.
Node types should be a struct including these default fields: ID int32 Name string CreatedAt time.Time UpdatedAt time.Time.