elasticsearch

package
v0.1.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: GPL-3.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 {
	Config
	V8Client *esv8.TypedClient
}

Client is the client that controls the Elasticsearch data ingestion

func New

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

New creates a new Elasticsearch typed client from given Config

func (*Client) Go

func (c *Client) Go(ctx context.Context) error

Go will attempt to rollover indices that are larger than the MaxSizeBytes

type Config

type Config struct {
	URL          string
	Username     string
	Password     string
	DisableSSL   bool
	MaxSizeBytes int
}

Config is the configuration for the Elasticsearch Client

Jump to

Keyboard shortcuts

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