modulepackage
0.0.0-20171016091834-7c6ac542ddcc
Repository: https://github.com/qor/media_library.git
Documentation: pkg.go.dev
# README
Media Library
Media Library is a Golang library that supports the upload of files/images to a filesystem or cloud storage. The Plugin includes cropping and resizing features for images.
Documentation
https://doc.getqor.com/plugins/media-library.html
License
Released under the MIT License.
# Functions
RegisterCallbacks register callback into GORM DB.
RegisterMediaHandler register Media library handler.
# Structs
AssetManager defined a asset manager that could be used to manage assets in qor admin.
Base defined a base struct for storages.
CropOption includes crop options.
No description provided by the author
FileSystem defined a media library storage using file system.
No description provided by the author
MediaBoxConfig configure MediaBox metas.
No description provided by the author
No description provided by the author
No description provided by the author
Size is a struct, used for `GetSizes` method, it will return a slice of Size, media library will crop images automatically based on it.
# Interfaces
FileHeader is an interface, for matched values, when call its `Open` method will return `multipart.File`.
MediaLibrary is an interface including methods that needs for a media library storage.
MediaHandler media library handler interface, defined which files could be handled, and the handler.
No description provided by the author
URLTemplater is a interface to return url template.
# Type aliases
Option media library option.