Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Db *gorm.DB
Db is the database object
View Source
var EsClient *elastic.Client
Functions ¶
func GetESClient ¶
func GetESClient(escfg *EsCfg)
GetESClient Attempts to connect to elastic search using "github.com/olivere/elastic/v7" package. Affect the EsClient to elastic client.
func GetOriginalESClient ¶
GetOriginalESClient Attempts to connect to elastisearch service using "github.com/elastic/go-elasticsearch/v8" package. Return the client and error
Types ¶
Click to show internal directories.
Click to hide internal directories.