Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Journal ¶
type Journal struct {
// contains filtered or unexported fields
}
Journal represents a file where doozer can save state. Doozer usally uses a list of multiple journals.
func NewJournal ¶
NewJournal opens the named file for synchronous I/O, creating it with mode 0640 if it does not exist and prepares it for logging operation. If successful, methods on the returned Journal can be used for I/O. It returns a Journal and an error, if any.
func (Journal) Fsck ¶
Fsck truncates the journal at the last read mutation. It removes data, so use with care.
func (Journal) ReadMutation ¶
Retrieve reads the next mutation from the Journal. It returns the mutation and an error, if any. EOF is signaled by a nil mutation with err set to io.EOF
func (Journal) WriteMutation ¶
Store writes the mutation to the Journal.
Directories ¶
Path | Synopsis |
---|---|
package doozer provides a github.com/ha/doozer compatible API to interract with persitence clients.
|
package doozer provides a github.com/ha/doozer compatible API to interract with persitence clients. |
doozerp is a persistence client for doozerd.
|
doozerp is a persistence client for doozerd. |