MCPcopy Index your code
hub / github.com/CodisLabs/codis / newTopomStore

Method newTopomStore

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

Source from the content-addressed store, hash-verified

74}
75
76func (t *cmdAdmin) newTopomStore(d map[string]interface{}) *models.Store {
77 if err := models.ValidateProduct(t.product); err != nil {
78 log.PanicErrorf(err, "invalid product name")
79 }
80 client := t.newTopomClient(d)
81 return models.NewStore(client, t.product)
82}
83
84func (t *cmdAdmin) handleRemoveLock(d map[string]interface{}) {
85 store := t.newTopomStore(d)

Callers 3

handleRemoveLockMethod · 0.95
dumpConfigV3Method · 0.95
handleConfigRestoreMethod · 0.95

Calls 2

newTopomClientMethod · 0.95
PanicErrorfMethod · 0.80

Tested by

no test coverage detected