gotagcore

package
v0.0.0-...-54a4899 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EncodeOptions = map[string]map[int]int{
	".jpeg": map[int]int{lilliput.JpegQuality: 85},
	".png":  map[int]int{lilliput.PngCompression: 7},
	".webp": map[int]int{lilliput.WebpQuality: 85},
}

Functions

func AddFile

func AddFile(db *gorm.DB, path string, options AddFileOptions) error

func CreateThumb

func CreateThumb(pathToImg string, sha256 string, mime string, maxWidth uint, maxHeight uint, done chan bool, live bool)

func ScanMono

func ScanMono(db *gorm.DB, dir string, userId int)

func ScanMulti

func ScanMulti(db *gorm.DB, dir string, userId int)

func ThumbPath

func ThumbPath(sha256 string, width uint, height uint) (path string)

func TimeStart

func TimeStart() (start int64)

func TimeStop

func TimeStop(start int64)

Types

type AddFileOptions

type AddFileOptions struct {
	UserId int
}

Jump to

Keyboard shortcuts

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