MCPcopy Index your code
hub / github.com/TruthHun/BookStack / ping

Method ping

models/elasticsearch.go:586–588  ·  view source on GitHub ↗

检验es服务能否连通

()

Source from the content-addressed store, hash-verified

584
585//检验es服务能否连通
586func (this *ElasticSearchClient) ping() error {
587 return utils.HandleResponse(this.get(this.Host).Response())
588}
589
590//查询索引是否存在
591//@return err nil表示索引存在,否则表示不存在

Callers 1

InitMethod · 0.95

Calls 3

getMethod · 0.95
HandleResponseFunction · 0.92
ResponseMethod · 0.80

Tested by

no test coverage detected