cmd

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IncludePath []string
	ExcludePath []string
)
View Source
var (
	JoinPath = srv.JoinPath
	Cfg      = cfg.Cfg
	Log      = cfg.Log
)

Functions

func BatchCacher

func BatchCacher(exitctx context.Context, cnvlist FileMap)

func BatchExtractor

func BatchExtractor(exitctx context.Context, extlist FileMap)

func BatchPathList

func BatchPathList(pathlist []string)

func Convert

func Convert(fpath string, fi fs.FileInfo, cs *CnvStat) (err error)

func Done

func Done() (err error)

Done performs graceful network shutdown.

func Execute

func Execute() error

Execute executes the root command.

func FileList

func FileList(fsys *jnt.SubPool, pathlist *[]string, extlist, cnvlist FileMap) (err error)

FileList forms list of files to process by caching algorithm.

func Init

func Init() (context.Context, error)

Init performs global data initialization. Loads configuration files, initializes file cache.

func InitStorage

func InitStorage() (err error)

InitStorage inits database caches engine.

func InitUserlog

func InitUserlog() (err error)

InitUserlog inits database user log engine.

func IsCached

func IsCached(fpath string) bool

IsCached returns "true" if thumbnail and all tiles are cached for given filename.

func LoadGpsCache

func LoadGpsCache() (err error)

LoadGpsCache loads all items with GPS information from EXIF table of storage into cache.

func LoadPathCache

func LoadPathCache() (err error)

LoadPathCache loads whole path table from database into cache.

func RunCacher

func RunCacher(exitctx context.Context)

func RunWeb

func RunWeb(exitctx context.Context, r *gin.Engine)

RunWeb launches server listeners.

func UpdateExtList

func UpdateExtList(extlist FileMap)

Types

type CnvStat

type CnvStat struct {
	ErrCount  uint64
	FileCount uint64
	// contains filtered or unexported fields
}

type FileMap

type FileMap = map[string]fs.FileInfo

Jump to

Keyboard shortcuts

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