package
Version:
v0.0.3
Opens a new window with list of versions in this module.
Published: Mar 23, 2021
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
DbConn stores the connexion to the database
EsConn stores ES client
ConnectES creates a new ES client and stores it
ConnectSQL connection to database
GetEsConn returns the es client connexion.
type Config struct {
DbHost string `env:"DB_HOST"`
DbName string `env:"MYSQL_DATABASE"`
DbUser string `env:"MYSQL_USER"`
DbPassword string `env:"MYSQL_PASSWORD"`
DbConn *sql.DB
}
Config for DB connection
type ConfigEs struct {
URL string `env:"ES_URL"`
}
ConfigEs to configure ES client
Source Files
¶
Click to show internal directories.
Click to hide internal directories.