json_indexing

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: AGPL-3.0 Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

Types

type Config

type Config struct {
	NumOfWorkers         int    `config:"worker_size"`
	IdleTimeoutInSeconds int    `config:"idle_timeout_in_seconds"`
	BulkSizeInKB         int    `config:"bulk_size_in_kb"`
	BulkSizeInMB         int    `config:"bulk_size_in_mb"`
	IndexPrefix          string `config:"index_prefix"`
	IndexName            string `config:"index_name"`
	TypeName             string `config:"type_name"`
	Elasticsearch        string `config:"elasticsearch"`
	InputQueue           string `config:"input_queue"`
	FailureQueue         string `config:"failure_queue"`
	InvalidQueue         string `config:"invalid_queue"`
	CheckESAvailable     bool   `config:"check_available"`
}

type IndexingMergeProcessor

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

func (*IndexingMergeProcessor) Name

func (processor *IndexingMergeProcessor) Name() string

处理纯 json 格式的消息索引

func (*IndexingMergeProcessor) NewBulkWorker

func (processor *IndexingMergeProcessor) NewBulkWorker(ctx *pipeline.Context, count *int, bulkSizeInByte int, wg *sync.WaitGroup)

func (*IndexingMergeProcessor) Process

func (processor *IndexingMergeProcessor) Process(ctx *pipeline.Context) error

TODO 合并批量处理的操作,这里只用来合并请求和构造 bulk 请求。 TODO 重启子进程,当子进程挂了之后

Jump to

Keyboard shortcuts

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