package
Version:
v0.0.0-...-faec4b7
Opens a new window with list of versions in this module.
Published: Oct 7, 2020
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Connect(config *Config) (*elasticsearch.Client, error)
Connect instantiates a new redis connection with the given configuration
type Config struct {
Host string `yaml:"host" json:"host"`
Port int16 `yaml:"port" json:"port"`
}
Config for the redis
type ConnectorFn func(cfg elasticsearch.Config) (*elasticsearch.Client, error)
ConnectorFn is the connector for elasticsearch
Source Files
¶
Click to show internal directories.
Click to hide internal directories.