MCPcopy Create free account
hub / github.com/cloudwan/gohan / Delete

Method Delete

sync/etcd/etcd.go:73–79  ·  view source on GitHub ↗

Delete sync update sync

(key string, prefix bool)

Source from the content-addressed store, hash-verified

71
72//Delete sync update sync
73func (s *Sync) Delete(key string, prefix bool) error {
74 if prefix {
75 log.Warning("Prefix option is translated as Recursive for Etcd v2 compatibility.")
76 }
77 s.etcdClient.Delete(key, prefix)
78 return nil
79}
80
81//Fetch data from sync
82func (s *Sync) Fetch(key string) (*sync.Node, error) {

Callers

nothing calls this directly

Implementers 5

Syncsync/etcd/etcd.go
MockSyncsync/mocks/sync_mock.go
MockSyncMockRecordersync/mocks/sync_mock.go
Syncsync/noop/noop.go
Syncsync/etcdv3/etcd.go

Calls 2

WarningMethod · 0.65
DeleteMethod · 0.65

Tested by

no test coverage detected