Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientCtor ¶
type ClientCtor func() (*elastic.Client, error)
ClientCtor repressents a client constructor to instantiate an elasticsearch client.
func NewClient ¶
func NewClient(endpoint string, debug bool) ClientCtor
NewClient instantiates and returns a new elasticsearch client constructor.
type Retrier ¶
type Retrier struct {
// contains filtered or unexported fields
}
Retrier defined a constant backoff retry strategy for the elastic connection.
func NewRetrier ¶
NewRetrier creates a the elastic client connection retries. It will attempt to connect every intervalMs milliseconds up to a maximum of retries attempts.
Click to show internal directories.
Click to hide internal directories.