storage

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package storage implements the functions, types, and interfaces for the module.

Package storage implements the functions, types, and interfaces for the module.

Index

Constants

View Source
const (
	ErrCacheConfigNil = errors.String("cache: config is nil")
)
View Source
const (
	ErrDatabaseConfigNil = errors.String("database: config is nil")
)
View Source
const ErrUnknownFileMetaType = errors.String("storage: unknown file meta type")

Variables

This section is empty.

Functions

func FromFileMeta added in v0.2.5

func FromFileMeta(meta metaiface.FileMeta) (*storagev1.FileMeta, error)

func New added in v0.2.6

func New(cfg *configv1.Cache) (storageiface.Cache, error)

New creates a new cache instance based on the provided configuration.

func NewProvider added in v0.2.6

func NewProvider(cfg *configv1.Storage) (storageiface.Provider, error)

NewProvider creates a new storage provider based on the given configuration.

func OpenDatabase

func OpenDatabase(database *configv1.Database) (*sql.DB, error)

Types

This section is empty.

Directories

Path Synopsis
fs
meta
Package meta implements the functions, types, and interfaces for the module.
Package meta implements the functions, types, and interfaces for the module.
meta/v1
Package metav1 implements the functions, types, and interfaces for the module.
Package metav1 implements the functions, types, and interfaces for the module.
meta/v2
Package metav2 implements the functions, types, and interfaces for the module.
Package metav2 implements the functions, types, and interfaces for the module.

Jump to

Keyboard shortcuts

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