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

Function Set

src/pkg/consensus/consensus.go:13–20  ·  view source on GitHub ↗
(p Proposer, path string, body []byte, rev int64)

Source from the content-addressed store, hash-verified

11
12
13func Set(p Proposer, path string, body []byte, rev int64) (e store.Event) {
14 e.Mut, e.Err = store.EncodeSet(path, string(body), rev)
15 if e.Err != nil {
16 return
17 }
18
19 return p.Propose([]byte(e.Mut))
20}
21
22
23func Del(p Proposer, path string, rev int64) (e store.Event) {

Callers

nothing calls this directly

Calls 1

ProposeMethod · 0.65

Tested by

no test coverage detected