sqlite

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

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 28 Imported by: 1

README

Filesystem based storage for GoActivitypub

Documentation

Index

Constants

View Source
const DefaultMaxItems = 100

Variables

View Source
var MandatoryCollections = vocab.CollectionPaths{
	vocab.Inbox,
	vocab.Outbox,
	vocab.Replies,
}
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

func PaginateCollection

func PaginateCollection(it vocab.Item) vocab.Item

PaginateCollection is a function that populates the received collection

Types

type Config

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

type Filterable

type Filterable = vocab.LinkOrIRI

Jump to

Keyboard shortcuts

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