package
0.11.0
Repository: https://github.com/arsham/expvastic.git
Documentation: pkg.go.dev

# Functions

New returns an error if it can't create the index It returns and error on the following occasions: +-------------------+-----------------------+ | Condition | Error | +-------------------+-----------------------+ | Invalid endpoint | InvalidEndpointError | | backoff < 5 | LowBackoffValueError | | Empty name | ErrEmptyName | | Invalid IndexName | InvalidIndexNameError | | Empty IndexName | ErrEmptyIndexName | +-------------------+-----------------------+ .
NewConfig is used for returning the values from config file.
WithLogger produces an error if the log is nil.
WithViper produces an error any of the inputs are empty.

# Structs

Config holds the necessary configuration for setting up an elasticsearch reader endpoint from a configuration file.
Recorder contains an elasticsearch client and an index name for recording data.

# Type aliases

Conf func is used for initializing a Config object.