storage

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IStorage

type IStorage interface {
	// Save do save given reader to given string as the file path and name
	// including the file extension. This Save will be responsible for closing
	// the reader, so you may safely call this in separate goroutine.
	Save(io.ReadCloser, string)
	// Remove do remove given file path.
	Remove(string)
}

IStorage all implementation of Storage pkg should use this interface as their signature/guideline.

func NewFile

func NewFile(l logger.Writer) IStorage

NewFile return implementation of storage.I that use local file system as the storage.

Jump to

Keyboard shortcuts

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