elasticsearch

package
v0.0.0-...-faec4b7 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(config *Config) (*elasticsearch.Client, error)

Connect instantiates a new redis connection with the given configuration

Types

type Config

type Config struct {
	Host string `yaml:"host" json:"host"`
	Port int16  `yaml:"port" json:"port"`
}

Config for the redis

type ConnectorFn

type ConnectorFn func(cfg elasticsearch.Config) (*elasticsearch.Client, error)

ConnectorFn is the connector for elasticsearch

var (
	// Connector function to be used
	Connector ConnectorFn
)

Jump to

Keyboard shortcuts

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