stream

package
v0.0.0-...-e675dcb Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

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

Backend object

func NewBackend

func NewBackend() (b *Backend)

NewBackend instantiate a new Stream Data Backend from configuration passed as argument

func (*Backend) AddFile

func (b *Backend) AddFile(file *common.File, stream io.Reader) (err error)

AddFile implementation for steam data backend will creates a new steam for the given upload and save it on filesystem with the given steam reader

func (*Backend) GetFile

func (b *Backend) GetFile(file *common.File) (stream io.ReadCloser, err error)

GetFile implementation for steam data backend will search on filesystem the requested steam and return its reading filehandle

func (*Backend) RemoveFile

func (b *Backend) RemoveFile(file *common.File) (err error)

RemoveFile does not need to be implemented cleaning occurs in AddFile's defer delete

Jump to

Keyboard shortcuts

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