storage

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2025 License: MIT Imports: 9 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.

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 interface{}) (*storagev1.FileMeta, error)

func OpenDatabase

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

Types

type Cache

type Cache = cache.Cache

func OpenCache

func OpenCache(cfg *configv1.Storage) (Cache, error)

Directories

Path Synopsis
Package meta implements the functions, types, and interfaces for the module.
Package meta implements the functions, types, and interfaces for the module.
v1
Package metav1 implements the functions, types, and interfaces for the module.
Package metav1 implements the functions, types, and interfaces for the module.
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