indexer

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentsCfg

type ComponentsCfg struct {
	DBBufferCfg   db_buffer.Config
	DispatcherCfg WorkQueue.DispatcherConfig
	DataStoreCfg  data_store.DataStoreConfig
}

type Config

type Config struct {
	EnableBuffer bool
	ComponentsCfg
}

type Indexer

type Indexer struct {
	Id       string
	DbConn   *gorm.DB
	DBBuffer *db_buffer.Buffer

	Config Config
	// contains filtered or unexported fields
}

func NewIndexer

func NewIndexer(dbConn *gorm.DB, id string, cfg Config) *Indexer

func (*Indexer) BuildWorkers

func (i *Indexer) BuildWorkers(c int)

func (*Indexer) EnqueueJob added in v1.2.0

func (i *Indexer) EnqueueJob(work WorkQueue.Job)

func (*Indexer) SetGetMissingHeightsFn

func (i *Indexer) SetGetMissingHeightsFn(fn MissingJobsFn)

func (*Indexer) SetSyncCB

func (i *Indexer) SetSyncCB(cb db_buffer.SyncCB)

func (*Indexer) SetWorkerConstructor

func (i *Indexer) SetWorkerConstructor(w WorkQueue.WorkerConstructor)

func (*Indexer) StartIndexing

func (i *Indexer) StartIndexing()

func (*Indexer) StopIndexing

func (i *Indexer) StopIndexing()

type MissingJobsFn added in v1.2.0

type MissingJobsFn func() ([]WorkQueue.Job, error)

type StatusServer added in v1.1.0

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

func NewStatusServer added in v1.1.0

func NewStatusServer(i *Indexer) *StatusServer

func (*StatusServer) Start added in v1.1.0

func (s *StatusServer) Start()

func (*StatusServer) Stop added in v1.1.0

func (s *StatusServer) Stop()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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