elastic

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Address        string
	Username       string
	Password       string
	MaxConnPerHost int
	MaxIdlePerHost int
}

func (Config) Client

func (e Config) Client() (*elasticsearch.Client, error)

Client generate new elasticsearch client connection

func (Config) Ping

func (e Config) Ping() error

Ping check database connection status

func (Config) Reset

func (e Config) Reset()

Reset elasticsearch client connection

Jump to

Keyboard shortcuts

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