Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("not found")
)
Functions ¶
This section is empty.
Types ¶
type ReadOptions ¶
func (*ReadOptions) GetDescending ¶
func (r *ReadOptions) GetDescending() bool
func (*ReadOptions) GetLimit ¶
func (r *ReadOptions) GetLimit() int
func (*ReadOptions) GetStart ¶
func (r *ReadOptions) GetStart() []byte
type Reader ¶
type Reader interface { // GetTransaction returns the model.Entry associated with the specified txHash. // // ErrNotFound is returned if no entry has been written. GetTransaction(ctx context.Context, txHash []byte) (*model.Entry, error) // GetAccountTransactions returns the model.Entry's with the specified options. // // If no options are specified, the results will be in ascending order starting // from the beginning (with an undefined limit). GetAccountTransactions(ctx context.Context, account string, opts *ReadOptions) ([]*model.Entry, error) // GetLatestForAccount returns the latest model.Entry in an accounts history. // // The entry is not guaranteed to be committed. As a result, it should be filtered // before being returned to callers / users. // // If no entries exist for the account, ErrNotFound is returned. GetLatestForAccount(ctx context.Context, account string) (*model.Entry, error) }
type ReaderWriter ¶
Click to show internal directories.
Click to hide internal directories.