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

Function NewStoreManager

driver/common/store.go:30–39  ·  view source on GitHub ↗
(consulAddr []string, logger g.LoggerType)

Source from the content-addressed store, hash-verified

28}
29
30func NewStoreManager(consulAddr []string, logger g.LoggerType) (*StoreManager, error) {
31 consulStore, err := libkv.NewStore(store.CONSUL, consulAddr, nil)
32 if err != nil {
33 return nil, err
34 }
35 return &StoreManager{
36 consulStore: consulStore,
37 logger: logger,
38 }, nil
39}
40func (sm *StoreManager) DestroyJob(jobId string) error {
41 key := fmt.Sprintf("dtle/%v", jobId)
42 err := sm.consulStore.DeleteTree(key)

Callers 15

SetConfigMethod · 0.92
AuthFilterFunction · 0.92
JobListV2Function · 0.92
buildJobListItemFunction · 0.92
buildKafkaJobListItemFunction · 0.92
getTaskProgressFunction · 0.92
buildBasicTaskProfileFunction · 0.92
PauseJobV2Function · 0.92
ResumeJobV2Function · 0.92
DeleteJobV2Function · 0.92
GetJobPositionV2Function · 0.92
ReverseStartJobV2Function · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected