Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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服务能否连通
586
func
(this *ElasticSearchClient) ping() error {
587
return
utils.HandleResponse(this.get(this.Host).Response())
588
}
589
590
//查询索引是否存在
591
//@return err nil表示索引存在,否则表示不存在
Callers
1
Init
Method · 0.95
Calls
3
get
Method · 0.95
HandleResponse
Function · 0.92
Response
Method · 0.80
Tested by
no test coverage detected