operation

package
v0.0.0-...-b1b3a06 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	*core.Postgres
}

Storage -

func NewStorage

func NewStorage(es *core.Postgres) *Storage

NewStorage -

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 -

func (*Storage) OPG

func (storage *Storage) OPG(ctx context.Context, address string, size, lastID int64) ([]operation.OPG, error)

OPG -

func (*Storage) Origination

func (storage *Storage) Origination(ctx context.Context, accountID int64) (result operation.Operation, err error)

Origination -

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL