ShowShardSet shows the shard set owned by the server
(w http.ResponseWriter, r *http.Request)
| 95 | |
| 96 | // ShowShardSet shows the shard set owned by the server |
| 97 | func (handler *DebugHandler) ShowShardSet(w http.ResponseWriter, r *http.Request) { |
| 98 | shards := handler.shardOwner.GetOwnedShards() |
| 99 | sort.Ints(shards) |
| 100 | common.Respond(w, shards) |
| 101 | } |
| 102 | |
| 103 | // Health returns whether the health check is on or off |
| 104 | func (handler *DebugHandler) Health(w http.ResponseWriter, r *http.Request) { |
nothing calls this directly
no test coverage detected