# 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.
# Type aliases
Conf func is used for initializing a Config object.