Example #1
0
func Del(p Proposer, path string, rev int64) (e store.Event) {
	e.Mut, e.Err = store.EncodeDel(path, rev)
	if e.Err != nil {
		return
	}

	return p.Propose([]byte(e.Mut))
}
Example #2
0
func Del(p Proposer, path, cas string) os.Error {
	mut, err := store.EncodeDel(path, cas)
	if err != nil {
		return err
	}

	_, _, err = p.Propose(mut)
	return err
}