Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrExists = errors.New("invoice list already exists") ErrNotFound = errors.New("invoice list not found") )
Functions ¶
Types ¶
type Store ¶
type Store interface {
// Put puts an commonpb.InvoiceList to the store.
//
// ErrExists is returned if an invoice list has already been stored
// for this transaction.
Put(ctx context.Context, txHash []byte, list *commonpb.InvoiceList) error
// Get gets the stored commonpb.InvoiceList for a given transaction.
//
// ErrNotFound is returned if no commonpb.InvoiceList exists for the
// transaction.
Get(ctx context.Context, txHash []byte) (*commonpb.InvoiceList, error)
}
Click to show internal directories.
Click to hide internal directories.