store

package
v0.65.2 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: BSD-3-Clause, AGPL-3.0 Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store is the implementation of the activity.Store interface backed by SQLite

func NewSqlStore

func NewSqlStore(ctx context.Context, dataDir string, encryptionKey string) (*Store, error)

NewSqlStore creates a new Store with an event table if not exists.

func (*Store) Close

func (store *Store) Close(_ context.Context) error

Close the Store

func (*Store) Get

func (store *Store) Get(ctx context.Context, accountID string, offset, limit int, descending bool) ([]*activity.Event, error)

Get returns "limit" number of events from index ordered descending or ascending by a timestamp

func (*Store) Save

func (store *Store) Save(_ context.Context, event *activity.Event) (*activity.Event, error)

Save an event in the SQLite events table end encrypt the "email" element in meta map

Jump to

Keyboard shortcuts

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