backend

package
v0.0.0-...-c503993 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL