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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址