Documentation ¶
Index ¶
- Constants
- func AllIndex() interface{}
- func CreateIndex(indexName string)
- func DeleteIndex(indexName string) interface{}
- func GetIndexPre() string
- func GroupField(indexName, field string, size, minCount int, excludeValues []string) []byte
- func Init()
- func InsertEsLog(logInfo interface{})
- func TestLog()
- type IndexInfo
- type QueryParams
- type ServerLogModel
Constants ¶
View Source
const ( NewTermQuery = "NewTermQuery" NewMatchPhraseQuery = "NewMatchPhraseQuery" NewRegexpQuery = "NewRegexpQuery" )
Variables ¶
This section is empty.
Functions ¶
func CreateIndex ¶ added in v0.0.28
func CreateIndex(indexName string)
func DeleteIndex ¶
func DeleteIndex(indexName string) interface{}
func GetIndexPre ¶ added in v0.0.23
func GetIndexPre() string
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.