filestorage

package
v0.0.0-...-dcce029 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package filestorage implements Storage interface that uses files on disk as storage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileStorage

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

FileStorage implements Storage interface for saving files on disk.

func New

func New(dest string) (*FileStorage, error)

New returns a new FileStorage at the destination.

func (*FileStorage) Open

func (s *FileStorage) Open(name string, size int64) (f storage.File, exists bool, err error)

Open a file.

func (*FileStorage) RootDir

func (s *FileStorage) RootDir() string

Jump to

Keyboard shortcuts

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