indexer

package
v0.0.0-...-d804a77 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Indexer

type Indexer interface {
	Scan(ctx context.Context)
	WaitClose()
	Start(ctx context.Context)
}

type ListenLastTxByCycle

type ListenLastTxByCycle struct {
	// contains filtered or unexported fields
}

func NewListenLastTxByCycle

func NewListenLastTxByCycle(c config.Config, rc *cache.Redis, cr *client.Client, db *model.SuiDB) *ListenLastTxByCycle

func (*ListenLastTxByCycle) ListenTx

func (l *ListenLastTxByCycle) ListenTx(ctx context.Context) <-chan TxDigest

type ListenLastTxBySub

type ListenLastTxBySub struct {
	// contains filtered or unexported fields
}

type ListenLatestNumber

type ListenLatestNumber interface {
	ListenTx(ctx context.Context) <-chan TxDigest
}

type SuiIndexer

type SuiIndexer struct {
	// contains filtered or unexported fields
}

func NewSuiIndexer

func NewSuiIndexer(c config.Config, l ListenLatestNumber, rc *cache.Redis, db *model.SuiDB) *SuiIndexer

func (*SuiIndexer) ProcessDropOutMessage

func (s *SuiIndexer) ProcessDropOutMessage(ctx context.Context)

func (*SuiIndexer) Scan

func (s *SuiIndexer) Scan(ctx context.Context)

func (*SuiIndexer) Start

func (s *SuiIndexer) Start(ctx context.Context)

func (*SuiIndexer) WaitClose

func (s *SuiIndexer) WaitClose()

type TxDigest

type TxDigest struct {
	PreDigest string
	Digest    string
}

Jump to

Keyboard shortcuts

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