filestorage

package
v0.0.0-...-0a9fff6 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileInfo

type FileInfo struct {
	Name string
	Type string
	Path string
}

type FileStorage

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

func NewFileStorage

func NewFileStorage(fileFolder string) *FileStorage

func (*FileStorage) CheckCapacity

func (storage *FileStorage) CheckCapacity() uint64

func (*FileStorage) Save

func (storage *FileStorage) Save(fileName, fileType string, data bytes.Buffer) (string, error)

func (*FileStorage) SearchFile

func (storage *FileStorage) SearchFile(searchFile string) (string, error)

Jump to

Keyboard shortcuts

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