MCPcopy
hub / github.com/redis/go-redis / String

Method String

ring.go:279–287  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

277}
278
279func (shard *ringShard) String() string {
280 var state string
281 if shard.IsUp() {
282 state = "up"
283 } else {
284 state = "down"
285 }
286 return fmt.Sprintf("%s is %s", shard.Client, state)
287}
288
289func (shard *ringShard) IsDown() bool {
290 const threshold = 3

Callers

nothing calls this directly

Calls 1

IsUpMethod · 0.95

Tested by

no test coverage detected