Documentation ¶
Index ¶
- func AllIndex() interface{}
- func DeleteIndex(indexName string) interface{}
- func GroupField(indexName, field string, size, minCount int, excludeValues []string) []byte
- func Init()
- func InsertEsLog(logInfo interface{})
- func QueryLogs(indexName, filed, value string, from, size int) interface{}
- func TestLog()
- type IndexInfo
- type ServerLogModel
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 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"` }
Click to show internal directories.
Click to hide internal directories.