Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUnknownPayment must be use while trying to read payment with unknown id ErrUnknownPayment = errors.New("there is no payment with given id") // ErrUnknownBankReference must be used when trying to read using unknown bank reference ErrUnknownBankReference = errors.New("unknown bank reference") )
Functions ¶
This section is empty.
Types ¶
type Storage ¶
Storage is an in memory implementation of a Ledger to store payments
func NewMemoryStorage ¶
func NewMemoryStorage() *Storage
NewMemoryStorage is a factory for in memory Storage for payments
func (*Storage) ReadUsingBankReference ¶
ReadUsingBankReference returns details of a payment in the Ledger using a bank reference
Click to show internal directories.
Click to hide internal directories.