storage

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Port

type Port interface {
	// Store save given reader and use given string as the id of that reader.
	// Depends on the implementation this may be a file name or some uuid. This
	// Store will be responsible for closing the reader.
	Store(io.ReadCloser, string)
	// Remove do remove given file id. Depends on the implementation this may
	// be a file path and filename or some uuid.
	Remove(string)
}

Port signature for storage pkg.

func NewFile

func NewFile(zap *zap.Logger) Port

NewFile return implementation of Port 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