storage

package
v0.0.0-...-25a5272 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2022 License: Unlicense Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLiteStorage

type SQLiteStorage struct {
	// contains filtered or unexported fields
}

func NewSQLiteStorage

func NewSQLiteStorage(ctx context.Context, path string) (*SQLiteStorage, error)

NewSQLiteStorage opens and migrates storage from given path.

func (*SQLiteStorage) Events

func (s *SQLiteStorage) Events(ctx context.Context, c chan<- service.BridgeEvent) error

Events sends all events from state archive through given channels grouped by their creation date.

func (*SQLiteStorage) StoreEvent

func (s *SQLiteStorage) StoreEvent(ctx context.Context, evt service.BridgeEvent) error

StoreEvent stores given bridge event in sqlite event storage.

Jump to

Keyboard shortcuts

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