Documentation
¶
Index ¶
- Variables
- func Configure() elasticsearch.Config
- func Connect() (*elasticsearch.Client, error)
- func Debug(debugString string)
- func Error(errString string, err error) error
- func Fatal(errString string, err error)
- func HandleResponse(resp []byte) ([]map[string]string, error)
- func HandleSearchResponse(resp []byte) (models.SearchResponse, error)
- func Info(infoString string)
- func InitLogger()
- func LogRequest(r []byte)
- func Warn(warnString string)
Constants ¶
This section is empty.
Variables ¶
View Source
var Elilogger *zap.SugaredLogger
Elilogger is the logging instance
Functions ¶
func Connect ¶
func Connect() (*elasticsearch.Client, error)
Connect takes a config generated by utils.Configure and returns an elasticsearch client and error
func HandleResponse ¶
HandleResponse handles esapi responses for everything except search
func HandleSearchResponse ¶
func HandleSearchResponse(resp []byte) (models.SearchResponse, error)
HandleSearchResponse handles responses for searches
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.