elastic

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = types.Module{
	{CreateFunc: NewElastic},
	{CreateFunc: NewConfig},
}

Functions

func NewElastic

func NewElastic(cfg Config) (*elasticsearch.Client, error)

Types

type Config

type Config struct {
	DSN        string
	MaxRetries int
	WithLogger bool
}

func NewConfig

func NewConfig(cfg *config.Config) Config

Jump to

Keyboard shortcuts

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