MCPcopy
hub / github.com/CodisLabs/codis / handleConfigDump

Method handleConfigDump

cmd/admin/admin.go:95–102  ·  view source on GitHub ↗
(d map[string]interface{})

Source from the content-addressed store, hash-verified

93}
94
95func (t *cmdAdmin) handleConfigDump(d map[string]interface{}) {
96 switch {
97 case d["-1"].(bool):
98 t.dumpConfigV1(d)
99 default:
100 t.dumpConfigV3(d)
101 }
102}
103
104type ConfigV3 struct {
105 Slots []*models.SlotMapping `json:"slots,omitempty"`

Callers 1

MainMethod · 0.95

Calls 2

dumpConfigV1Method · 0.95
dumpConfigV3Method · 0.95

Tested by

no test coverage detected