MCPcopy Create free account
hub / github.com/MG-RAST/Shock / Get

Method Get

shock-server/node/locker/locker.go:187–194  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

185}
186
187func (f *FileLocker) Get(id string) *LockInfo {
188 f.Lock()
189 defer f.Unlock()
190 if info, ok := f.nodes[id]; ok {
191 return info
192 }
193 return nil
194}
195
196func (f *FileLocker) Add(id string) *LockInfo {
197 f.Lock()

Callers 12

ReadMethod · 0.45
ReadManyMethod · 0.45
IndexTypedRequestFunction · 0.45
AclRequestFunction · 0.45
AclTypedRequestFunction · 0.45
parseAclRequestTypedFunction · 0.45
ParseSamtoolsArgsFunction · 0.45
AuthenticateFunction · 0.45
fetchFileStreamFunction · 0.45
DBInitMethod · 0.45
HasFileLockMethod · 0.45
HasIndexLockMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected