merge_to_bulk

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2025 License: AGPL-3.0 Imports: 13 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 {
	MessageField param.ParaKey `config:"message_field"`

	BulkSizeInKB  int    `config:"bulk_size_in_kb"`
	BulkSizeInMB  int    `config:"bulk_size_in_mb"`
	Elasticsearch string `config:"elasticsearch"`
	IndexName     string `config:"index_name"`
	TypeName      string `config:"type_name"`

	OutputQueue struct {
		Name   string                 `config:"name"`
		Labels map[string]interface{} `config:"label" json:"label,omitempty"`
	} `config:"output_queue"`
}

type IndexingMergeToBulkProcessor

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

func (*IndexingMergeToBulkProcessor) Name

func (processor *IndexingMergeToBulkProcessor) Name() string

处理纯 json 格式的消息索引

func (*IndexingMergeToBulkProcessor) Process

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

合并批量处理的操作,这里只用来合并请求和构造 bulk 请求。

Jump to

Keyboard shortcuts

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