adapters

package
v0.0.0-...-2883ade Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBolt

func NewBolt(path string) (*bolt.DB, error)

Types

type AdaptersProvider

type AdaptersProvider interface {
	Provide(tx *bolt.Tx) (*application.TransactableAdapters, error)
}

type Database

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

func NewDatabase

func NewDatabase(tx *bbolt.Tx) *Database

func (*Database) Browse

func (d *Database) Browse(path []application.Key, before, after, from *application.Key) ([]application.Entry, error)

type TransactionProvider

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

func NewTransactionProvider

func NewTransactionProvider(
	db *bolt.DB,
	provider AdaptersProvider,
) *TransactionProvider

func (*TransactionProvider) Read

func (*TransactionProvider) Write

type UUIDGenerator

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

func NewUUIDGenerator

func NewUUIDGenerator() *UUIDGenerator

func (*UUIDGenerator) Generate

func (g *UUIDGenerator) Generate() (string, error)

Jump to

Keyboard shortcuts

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