elastic8

package
v2.0.49 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(address string, index string, apikey string, logger *zerolog.Logger) (*elasticsearch.TypedClient, error)

func NewClient2

func NewClient2(index string, cfg *Elastic8Config, logger *zerolog.Logger) (*elasticsearch.TypedClient, error)

Types

type Elastic8Config

type Elastic8Config struct {
	Adresses               []string
	Username               configutil.EnvString
	Password               configutil.EnvString
	CACert                 string
	CertificateFingerprint configutil.EnvString // 2D:51:25:AB:34:0B:57:83:BC:79:3B:A9:2D:B2:6E:63:95:FC:BE:ED:6A:2E:00:F8:11:FE:75:B6:9A:EF:2B:0A
	ServiceToken           configutil.EnvString
	APIKey                 configutil.EnvString
	CloudID                string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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