MCPcopy
hub / github.com/ha/doozerd / Snap

Method Snap

src/pkg/store/store.go:292–298  ·  view source on GitHub ↗

Returns a point-in-time snapshot of the contents of the store.

()

Source from the content-addressed store, hash-verified

290
291// Returns a point-in-time snapshot of the contents of the store.
292func (st *Store) Snap() (ver int64, g Getter) {
293 // WARNING: Be sure to read the pointer value of st.state only once. If you
294 // need multiple accesses, copy the pointer first.
295 p := st.state
296
297 return p.ver, p.root
298}
299
300// Gets the value stored at `path`, if any.
301//

Callers 7

GetMethod · 0.95
StatMethod · 0.95
CleanFunction · 0.80
activateFunction · 0.80
TestSnapFunction · 0.80
getterMethod · 0.80
evServerFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestSnapFunction · 0.64