Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface { // Read a buffer value stored against key k into buffer buf. // The return value will be false if the key could not be found in the map. Get(k uint64, buf []byte) bool // Update finds the buffer stored against key k and atomically updates it with // v using the function fn. It returns the error returned by fn, if any. The // function fn may be called multiple times during a single call to Update, or // not called at all. Update(k uint64, fn func(data []byte, init bool) error) error }
Click to show internal directories.
Click to hide internal directories.