uploadimgs

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

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 PostMetaData struct {
	*db.Post
	OrigText  []byte
	Cur       *db.Post
	Tags      []string
	User      *db.User
	FileEntry *utils.FileEntry
}

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

func (*UploadImgHandler) List

func (h *UploadImgHandler) List(s ssh.Session, filename string) ([]os.FileInfo, error)

func (*UploadImgHandler) Read

func (h *UploadImgHandler) Read(s ssh.Session, filename string) (os.FileInfo, io.ReaderAt, error)

func (*UploadImgHandler) Validate

func (h *UploadImgHandler) Validate(s ssh.Session) error

func (*UploadImgHandler) Write

func (h *UploadImgHandler) Write(s ssh.Session, entry *utils.FileEntry) (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL