MCPcopy Create free account
hub / github.com/actiontech/dtle / PutConfig

Method PutConfig

driver/common/store.go:261–268  ·  view source on GitHub ↗
(subject string, config *MySQLDriverConfig)

Source from the content-addressed store, hash-verified

259}
260
261func (sm *StoreManager) PutConfig(subject string, config *MySQLDriverConfig) error {
262 url := fmt.Sprintf("dtle/%v/Config", subject)
263 bs, err := json.Marshal(config)
264 if err != nil {
265 return err
266 }
267 return sm.consulStore.Put(url, bs, nil)
268}
269
270func (sm *StoreManager) WaitKv(subject string, key string, stopCh chan struct{}) ([]byte, error) {
271 url := fmt.Sprintf("dtle/%v/%v", subject, key)

Callers 2

RunMethod · 0.80
RunMethod · 0.80

Calls 1

MarshalMethod · 0.65

Tested by

no test coverage detected