sqlite

package module
v0.0.0-...-d903d65 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: MIT Imports: 27 Imported by: 2

README

SQLite based storage for GoActivitypub

builds.sr.ht status Coveralls GitHub License

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ReadOnlyTxn = sql.TxOptions{
	Isolation: sql.LevelReadUncommitted,
	ReadOnly:  true,
}
View Source
var WriteTxn = sql.TxOptions{Isolation: sql.LevelWriteCommitted, ReadOnly: false}

Functions

func Bootstrap

func Bootstrap(conf Config) error

func Clean

func Clean(conf Config) error

func New

func New(c Config) (*repo, error)

New returns a new repo repository

Types

type Config

type Config struct {
	Path        string
	CacheEnable bool
	LogFn       loggerFn
	ErrFn       loggerFn
}

type Filterable

type Filterable = vocab.LinkOrIRI

type Metadata

type Metadata struct {
	Pw         []byte `jsonld:"pw,omitempty"`
	PrivateKey []byte `jsonld:"key,omitempty"`
}

Jump to

Keyboard shortcuts

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