library

package
v1.0.77 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RecordPath   = "records"
	BlobPath     = "cards"
	ManifestPath = "manifest"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobStorage

type BlobStorage string

BlobStorage identifies a blob storage implementation

const (
	Pebble     BlobStorage = "pblob"
	SQLiteBlob BlobStorage = "sqlblob"
)

type Handler

type Handler interface {
	Names() []VaultName
	Count() int
	Create(name VaultName) error
	Delete(name VaultName) error
}

Handler provides vault management operations

type Manifest

type Manifest struct {
	RecordStorage RecordStorage
	BlobStorage   BlobStorage
}

Manifest describes the storage types used by a vault

type Options

type Options struct {
	Path           string
	MaxVaults      int
	Workers        int
	RecordStorage  RecordStorage
	BlobStorage    BlobStorage
	RecordStorages map[RecordStorage]record.Builder
	BlobStorages   map[BlobStorage]blob.Builder
}

Options configures the library service

type RecordStorage

type RecordStorage string

RecordStorage identifies a record storage implementation

const (
	EntSQL RecordStorage = "erecord"
)

type Service

type Service interface {
	Handler
	Load(name VaultName) (Vault, error)
}

Service manages multiple vaults

type Vault

type Vault struct {
	Name    VaultName
	Catalog catalog.Service
}

Vault represents a loaded vault with its catalog

type VaultName

type VaultName string

VaultName is a unique identifier for a vault

type VaultPath

type VaultPath string

VaultPath is the filesystem path to a vault

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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