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

Method Lock

sync/sync.go:32–32  ·  view source on GitHub ↗
(path string, block bool)

Source from the content-addressed store, hash-verified

30type Sync interface {
31 HasLock(path string) bool
32 Lock(path string, block bool) (notifyLost chan struct{}, err error)
33 Unlock(path string) error
34 Fetch(path string) (*Node, error)
35 Update(path, json string) error

Callers 15

GetFunction · 0.65
ClearFunction · 0.65
withinLockedMigrationFunction · 0.65
cli_test.goFile · 0.65
RunMethod · 0.65
processSyncWatchMethod · 0.65
startCRONProcessFunction · 0.65
RunMethod · 0.65
iterateMethod · 0.65
TestLockUnblockingFunction · 0.65
TestLockBlockingFunction · 0.65
UnRegisterSchemaMethod · 0.65

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

no outgoing calls

Tested by 2

TestLockUnblockingFunction · 0.52
TestLockBlockingFunction · 0.52