merge_to_bulk

package
v0.0.0-...-847fb65 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

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