package
Version:
v0.9.0-beta
Opens a new window with list of versions in this module.
Published: Feb 13, 2021
License: AGPL-3.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
NewDiskStore initialises store for Filesystem provider.
Client implements `media.Store`
Delete accepts a filename and removes it from disk.
Get accepts a filename and retrieves the full path from disk.
Put accepts the filename, the content type and file object itself and stores the file in disk.
type Opts struct {
UploadPath string `koanf:"upload_path"`
UploadURI string `koanf:"upload_uri"`
RootURL string `koanf:"root_url"`
}
Opts represents filesystem params
Source Files
¶
Click to show internal directories.
Click to hide internal directories.