package
2.1.5+incompatible
Repository: https://github.com/nomkhonwaan/myblog.git
Documentation: pkg.go.dev
# Packages
Package mock_storage is a generated GoMock package.
# Functions
DeleteHandlerFunc handles deletion request.
DownloadHandlerFunc handles downloading request.
NewDiskCache returns a new DiskCache instance.
NewFileRepository returns a MongoFileRepository instance.
UpdateHandlerFunc handles uploading request.
# Structs
DiskCache implements Cache interface with local disk storage.
File is an uploaded object on the storage server.
MongoFileRepository implements fileRepository on MongoDB.
# Interfaces
Cache uses to storing or retrieving files from hidden or inaccessible place.
A fileRepository interface.
Storage uses to storing or retrieving file from cloud or remote server.
# Type aliases
Slug is a valid URL string composes with file name and ID.