Documentation
¶
Overview ¶
Package memoryjournal provides an in-memory implementation of journal.Store.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// BeforeOpen, if non-nil, is called before a journal is opened.
BeforeOpen func(name string) error
// BeforeAppend, if non-nil, is called before a record is appended.
BeforeAppend func(name string, rec []byte) error
// AfterAppend, if non-nil, is called after a record is appended.
AfterAppend func(name string, rec []byte) error
// contains filtered or unexported fields
}
Store is an implementation of journal.Store that stores records in memory.
Click to show internal directories.
Click to hide internal directories.