Documentation ¶
Index ¶
- type Storage
- func (storage *Storage) GetByHash(ctx context.Context, hash []byte) (operations []operation.Operation, err error)
- func (storage *Storage) GetByHashAndCounter(ctx context.Context, hash []byte, counter int64) (operations []operation.Operation, err error)
- func (storage *Storage) GetByID(ctx context.Context, id int64) (result operation.Operation, err error)
- func (storage *Storage) Last(ctx context.Context, filters map[string]interface{}, lastID int64) (operation.Operation, error)
- func (storage *Storage) ListEvents(ctx context.Context, accountID int64, size, offset int64) (operations []operation.Operation, err error)
- func (storage *Storage) OPG(ctx context.Context, address string, size, lastID int64) ([]operation.OPG, error)
- func (storage *Storage) Origination(ctx context.Context, accountID int64) (result operation.Operation, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
Storage -
func (*Storage) GetByHash ¶
func (storage *Storage) GetByHash(ctx context.Context, hash []byte) (operations []operation.Operation, err error)
GetByHash -
func (*Storage) GetByHashAndCounter ¶
func (storage *Storage) GetByHashAndCounter(ctx context.Context, hash []byte, counter int64) (operations []operation.Operation, err error)
GetByHashAndCounter -
func (*Storage) GetByID ¶
func (storage *Storage) GetByID(ctx context.Context, id int64) (result operation.Operation, err error)
GetByID -
func (*Storage) Last ¶
func (storage *Storage) Last(ctx context.Context, filters map[string]interface{}, lastID int64) (operation.Operation, error)
Last - get last operation by `filters` with not empty deffated_storage
func (*Storage) ListEvents ¶
func (storage *Storage) ListEvents(ctx context.Context, accountID int64, size, offset int64) (operations []operation.Operation, err error)
ListEvents -
Click to show internal directories.
Click to hide internal directories.