elastic

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(config *Config) (*Client, error)

func (*Client) BulkIndexDocs

func (c *Client) BulkIndexDocs(ctx context.Context, mustIndex bool, docs []esutil.BulkIndexerItem) error

type Config

type Config struct {
	Hosts      []string `yaml:"hosts" json:"hosts" mapstructure:"hosts" validate:"required"`
	User       string   `yaml:"user" json:"user" mapstructure:"user"`
	Password   string   `yaml:"password" json:"password" mapstructure:"password"`
	Index      string   `yaml:"index" json:"index" mapstructure:"index" validate:"required"`
	NumWorkers int      `yaml:"num_workers" json:"num_workers" mapstructure:"num_workers" validate:"required"`
}

Jump to

Keyboard shortcuts

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