package
Version:
v0.0.0-...-e675dcb
Opens a new window with list of versions in this module.
Published: Feb 28, 2024
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Backend struct {
Config *Config
}
Backend object
NewBackend instantiate a new File Data Backend
from configuration passed as argument
AddFile implementation for file data backend will creates a new file for the given upload
and save it on filesystem with the given file reader
GetFile implementation for file data backend will search
on filesystem the asked file and return its reading filehandle
RemoveFile implementation for file data backend will delete the given
file from filesystem
type Config struct {
Directory string
}
Config describes configuration for File Databackend
func NewConfig(params map[string]interface{}) (config *Config)
NewConfig instantiate a new default configuration
and override it with configuration passed as argument
Source Files
¶
Click to show internal directories.
Click to hide internal directories.