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

Method setp

src/pkg/store/node.go:112–119  ·  view source on GitHub ↗
(k, v string, rev int64, keep bool)

Source from the content-addressed store, hash-verified

110}
111
112func (n node) setp(k, v string, rev int64, keep bool) node {
113 if err := checkPath(k); err != nil {
114 return n
115 }
116
117 n, _ = n.set(split(k), v, rev, keep)
118 return n
119}
120
121func (n node) apply(seqn int64, mut string) (rep node, ev Event) {
122 ev.Seqn, ev.Rev, ev.Mut = seqn, seqn, mut

Callers 1

applyMethod · 0.95

Calls 3

setMethod · 0.95
checkPathFunction · 0.85
splitFunction · 0.85

Tested by

no test coverage detected