Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteIndex ¶
func DeleteIndex(indexName string) interface{}
func GroupField ¶
func InsertEsLog ¶
func InsertEsLog(logInfo interface{})
Types ¶
type QueryParams ¶ added in v0.0.22
type ServerLogModel ¶
type ServerLogModel struct { ServerName string `json:"serverName"` Env string `json:"env"` TimeStamp int64 `json:"timeStamp"` ThreadNo string `json:"threadNo"` ServerIp string `json:"serverIp"` ClientIp string `json:"clientIp"` Token string `json:"token"` CustomerId int32 `json:"customerId"` ClientSource string `json:"clientSource"` Url string `json:"url"` Method string `json:"method"` Request string `json:"request"` Response string `json:"response"` DealTimes int64 `json:"dealTimes"` }
func QueryLogs ¶
func QueryLogs(indexName string, params []QueryParams, sortsDesc map[string]bool, from, size int) (total int64, data []ServerLogModel)
Click to show internal directories.
Click to hide internal directories.