Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBlocks ¶
func NewBlocks(blocksRepo repository.Blocks) *blocks
func NewSearch ¶
func NewSearch(repo repository.Search) *search
func NewTxs ¶
func NewTxs(txRepo repository.Txs) *txs
Types ¶
type Blocks ¶
type Blocks interface { BlockInfo(ctx context.Context, block int32) (*model.BlockInfo, error) BlockInfoByHash(ctx context.Context, hash string) (*model.BlockInfo, error) BlockValidators(ctx context.Context, block int32) ([]string, error) TotalBlocks(ctx context.Context, to time.Time) (*model.TotalBlocks, error) Blocks(ctx context.Context, limit int64, offset int64) ([]*model.BlockInfo, int64, error) BlockSignatures(ctx context.Context, height int64, limit int64, offset int64) ([]*model.BlockSigners, int64, error) }
type Txs ¶
type Txs interface { ChartTxByDay(ctx context.Context, from time.Time, to time.Time) ([]*model.TxsByDay, error) GetTxByHash(ctx context.Context, txHash string) (*models.Tx, error) TotalTransactions(ctx context.Context, to time.Time) (*model.TotalTransactions, error) Transactions(ctx context.Context, offset int64, limit int64) ([]*models.Tx, int64, error) TransactionsByBlock(ctx context.Context, height int64, offset int64, limit int64) ([]*models.Tx, int64, error) TransactionRawLog(ctx context.Context, hash string) ([]byte, error) TransactionSigners(ctx context.Context, hash string) ([]*models.SignerInfo, error) Messages(ctx context.Context, hash string) ([]*models.Message, error) GetSenderAndReceiver(ctx context.Context, hash string) (*model.TxSenderReceiver, error) ChartTransactionsByHour(ctx context.Context, to time.Time) (*model.TxByHourWithCount, error) ChartTransactionsVolume(ctx context.Context, to time.Time) ([]*model.TxVolumeByHour, error) }
Click to show internal directories.
Click to hide internal directories.