Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Configuration represent the variable of configuration model Configuration = &ConfigurationModel{} )
Functions ¶
func InitElasticsearch ¶
func InitElasticsearch() (*elastic.Client, error)
InitElasticsearch will create a variable that represent the elastic.Client
Types ¶
type ConfigurationModel ¶
type ConfigurationModel struct { Port string `json:"port"` Elasticsearch struct { URL string `json:"url"` } `json:"elasticsearch"` }
ConfigurationModel represent the configuration model
Click to show internal directories.
Click to hide internal directories.