storage

package
v0.0.0-...-ff179e1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrFileNotFound = errors.New("file not found")

Functions

This section is empty.

Types

type Storage

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

func New

func New(path string, db *database.Database) (s *Storage, caught try.Err)

func (*Storage) GetFile

func (s *Storage) GetFile(sitePath string) (filePath string, caught try.Err)

func (*Storage) StoreFile

func (s *Storage) StoreFile(versionId uint, sourcePath string, sitePath string) (
	caught try.Err)

Jump to

Keyboard shortcuts

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