filestorage

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const StorageType = "file"

Variables

This section is empty.

Functions

This section is empty.

Types

type FileStorage

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

func New

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

func (*FileStorage) Dest

func (s *FileStorage) Dest() string

func (*FileStorage) Open

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

Jump to

Keyboard shortcuts

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