Documentation
¶
Index ¶
- func NewBoltEventStore(file string) (types.EventStore, error)
- type BoltEventStore
- func (b *BoltEventStore) BackupDB(w io.Writer) (int, error)
- func (b *BoltEventStore) DeleteEvent(uri string) error
- func (b *BoltEventStore) GetAllEvents() ([]types.Event, error)
- func (b *BoltEventStore) GetDBStats() (int, error)
- func (b *BoltEventStore) GetEvent(uri string) (*types.Event, error)
- func (b *BoltEventStore) StoreEvent(event types.Event) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBoltEventStore ¶
func NewBoltEventStore(file string) (types.EventStore, error)
NewBoltEventStore new BoldDB store
Types ¶
type BoltEventStore ¶
type BoltEventStore struct {
// contains filtered or unexported fields
}
BoltEventStore BoltDB store
func (*BoltEventStore) BackupDB ¶
func (b *BoltEventStore) BackupDB(w io.Writer) (int, error)
BackupDB backup BoltDB database
func (*BoltEventStore) DeleteEvent ¶
func (b *BoltEventStore) DeleteEvent(uri string) error
DeleteEvent delete event record from BoltDB
func (*BoltEventStore) GetAllEvents ¶
func (b *BoltEventStore) GetAllEvents() ([]types.Event, error)
GetAllEvents get all stored events
func (*BoltEventStore) GetDBStats ¶
func (b *BoltEventStore) GetDBStats() (int, error)
GetDBStats get number of records
func (*BoltEventStore) GetEvent ¶
func (b *BoltEventStore) GetEvent(uri string) (*types.Event, error)
GetEvent get event record
func (*BoltEventStore) StoreEvent ¶
func (b *BoltEventStore) StoreEvent(event types.Event) error
StoreEvent store event record into BoltDB
Click to show internal directories.
Click to hide internal directories.