uploadimgs

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostMetaData

type PostMetaData struct {
	*db.Post
	OrigText []byte
	Cur      *db.Post
	Tags     []string
	User     *db.User
	*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) GetLogger added in v1.3.0

func (h *UploadImgHandler) GetLogger() *zap.SugaredLogger

func (*UploadImgHandler) List

func (h *UploadImgHandler) List(s ssh.Session, fpath string, isDir bool, recursive bool) ([]os.FileInfo, error)

func (*UploadImgHandler) Read

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