Documentation ¶
Index ¶
- Variables
- type PostMetaData
- type UploadImgHandler
- func (h *UploadImgHandler) List(s ssh.Session, filename string) ([]os.FileInfo, error)
- func (h *UploadImgHandler) Read(s ssh.Session, filename string) (os.FileInfo, io.ReaderAt, error)
- func (h *UploadImgHandler) Validate(s ssh.Session) error
- func (h *UploadImgHandler) Write(s ssh.Session, entry *utils.FileEntry) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var GB = MB * 1024
View Source
var KB = 1024
View Source
var MB = KB * 1024
Functions ¶
This section is empty.
Types ¶
type PostMetaData ¶
type UploadImgHandler ¶
type UploadImgHandler struct { DBPool db.DB Cfg *shared.ConfigSite Storage storage.ObjectStorage }
func NewUploadImgHandler ¶
func NewUploadImgHandler(dbpool db.DB, cfg *shared.ConfigSite, storage storage.ObjectStorage) *UploadImgHandler
Click to show internal directories.
Click to hide internal directories.