escli

package
v0.0.0-...-c42b9c9 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_HEALTH_CHECK_INTERVAL = 10
	DEFAULT_MAX_RETRIES           = 5
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EsClient

type EsClient struct {
	*elastic.Client
}

EsClient elastic client

type EsFactory

type EsFactory struct {
	HealthCheckInterval int
	MaxRetries          int
	GZip                bool
	Sniff               bool
}

EsFactory elastic factory

var (
	Factory EsFactory
)

func (*EsFactory) CreateEsCli

func (p *EsFactory) CreateEsCli(user, pwd string, adders []string) (*EsClient, error)

CreateEsCli create elastic client

Jump to

Keyboard shortcuts

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