elasticsearch

package
v0.0.0-...-dc7611c Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module("elasticfx",
	fx.Provide(provideConfig),
	fx.Provide(NewElasticClient),
)

Module provided to fxlog https://uber-go.github.io/fx/modules.html

Functions

func NewElasticClient

func NewElasticClient(cfg *ElasticOptions) (*elasticsearch.Client, error)

Types

type ElasticOptions

type ElasticOptions struct {
	URL string `mapstructure:"url"`
}

Jump to

Keyboard shortcuts

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