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"`
}
Click to show internal directories.
Click to hide internal directories.