filesman

package module
v0.0.0-...-9fcbe08 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: GPL-3.0 Imports: 16 Imported by: 0

README

filesman

Documentation

Index

Constants

View Source
const FILEKEY = "uploadfile"

Variables

This section is empty.

Functions

func AddImageToPdf

func AddImageToPdf(inputPath string, outputPath string, imagePath string, pageNum int, xPos float64, yPos float64, iwidth float64) error

func BuildFilename

func BuildFilename(addr string, filename string) string

func GenFilename

func GenFilename(c *gin.Context, filename string) (string, error)

func Listfile

func Listfile(prefix string) []string

Types

type Filesman

type Filesman struct {
	Filedir       string
	MaxUploadSize int64
}

func NewFilesman

func NewFilesman() *Filesman

func (*Filesman) Download

func (filesman *Filesman) Download(c *gin.Context)

func (*Filesman) Hash

func (filesman *Filesman) Hash(c *gin.Context)

func (*Filesman) ImgAddPdf

func (filesman *Filesman) ImgAddPdf(c *gin.Context)

func (*Filesman) ImgAddPdfOnce

func (filesman *Filesman) ImgAddPdfOnce(c *gin.Context)

func (*Filesman) Listfile

func (filesman *Filesman) Listfile(c *gin.Context)

func (*Filesman) Upload

func (filesman *Filesman) Upload(c *gin.Context) (filename string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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