Documentation
¶
Overview ¶
Package plugin is an interface package for ledger addons.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TxDID = TxInfo{TxType: TxTypeDID} TxSchema = TxInfo{TxType: TxTypeSchema} TxCredDef = TxInfo{TxType: TxTypeCredDef} ErrNotExist = errors.New("Ledger element doesn't exist") )
Functions ¶
This section is empty.
Types ¶
type Ledger ¶
Ledger is a plugin interface used to offer implementations of addon ledgers. See pool package for more information.
type Mapper ¶
type Mapper interface {
Write(tx TxInfo, ID, data string) error
// Read follows ErrNotExist semantics
Read(tx TxInfo, ID string) (string, string, error)
}
Mapper is an property getter/setter interface for addon ledger implementations.
Click to show internal directories.
Click to hide internal directories.