indexing

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBackfillRunning = errors.New("backfill already running (use force flag to override it)")
)
View Source
var (
	ErrPurgingDisabled = errors.New("purging disabled")
)
View Source
var (
	ErrRunningSequentialReindex = errors.New("indexing skipped because sequential reindex hasn't finished yet")
)

Functions

func NewBackfillUseCase added in v0.4.2

func NewBackfillUseCase(cfg *config.Config, db *store.Store, c *client.Client) *backfillUseCase

func NewIndexUseCase added in v0.5.0

func NewIndexUseCase(cfg *config.Config, db *store.Store, c *client.Client) *indexUseCase

func NewIndexWorkerHandler added in v0.5.0

func NewIndexWorkerHandler(cfg *config.Config, db *store.Store, c *client.Client) *indexWorkerHandler

func NewPurgeUseCase

func NewPurgeUseCase(cfg *config.Config, db *store.Store) *purgeUseCase

func NewPurgeWorkerHandler

func NewPurgeWorkerHandler(cfg *config.Config, db *store.Store, c *client.Client) *purgeWorkerHandler

func NewReindexUseCase added in v0.9.0

func NewReindexUseCase(cfg *config.Config, db *store.Store, c *client.Client) *reindexUseCase

func NewSummarizeUseCase

func NewSummarizeUseCase(cfg *config.Config, db *store.Store) *summarizeUseCase

func NewSummarizeWorkerHandler

func NewSummarizeWorkerHandler(cfg *config.Config, db *store.Store, c *client.Client) *summarizeWorkerHandler

Types

type BackfillCmdHandler added in v0.4.2

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

func NewBackfillCmdHandler added in v0.4.2

func NewBackfillCmdHandler(cfg *config.Config, db *store.Store, c *client.Client) *BackfillCmdHandler

func (*BackfillCmdHandler) Handle added in v0.4.2

func (h *BackfillCmdHandler) Handle(ctx context.Context, parallel bool, force bool)

type BackfillUseCaseConfig added in v0.4.2

type BackfillUseCaseConfig struct {
	Parallel bool
	Force    bool
}

type IndexCmdHandler added in v0.5.0

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

func NewIndexCmdHandler added in v0.5.0

func NewIndexCmdHandler(cfg *config.Config, db *store.Store, c *client.Client) *IndexCmdHandler

func (*IndexCmdHandler) Handle added in v0.5.0

func (h *IndexCmdHandler) Handle(ctx context.Context, batchSize int64)

type PurgeCmdHandler added in v0.4.2

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

func NewPurgeCmdHandler

func NewPurgeCmdHandler(cfg *config.Config, db *store.Store, c *client.Client) *PurgeCmdHandler

func (*PurgeCmdHandler) Handle added in v0.4.2

func (h *PurgeCmdHandler) Handle(ctx context.Context)

type ReindexCmdHandler added in v0.9.0

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

func NewReindexCmdHandler added in v0.9.0

func NewReindexCmdHandler(cfg *config.Config, db *store.Store, c *client.Client) *ReindexCmdHandler

func (*ReindexCmdHandler) Handle added in v0.9.0

func (h *ReindexCmdHandler) Handle(ctx context.Context, parallel bool, startHeight, endHeight int64, targetIds []int64)

type ReindexUseCaseConfig added in v0.9.0

type ReindexUseCaseConfig struct {
	Parallel    bool
	StartHeight int64
	EndHeight   int64
	TargetIds   []int64
}

type SummarizeCmdHandler added in v0.4.2

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

func NewSummarizeCmdHandler

func NewSummarizeCmdHandler(cfg *config.Config, db *store.Store, c *client.Client) *SummarizeCmdHandler

func (*SummarizeCmdHandler) Handle added in v0.4.2

func (h *SummarizeCmdHandler) Handle(ctx context.Context)

Jump to

Keyboard shortcuts

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