ingestpdf

package
v2.0.0-...-1aa99ae Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWorkerPool

func NewWorkerPool(num int, ingestTimeout time.Duration, doIt func(job *JobStruct) error, logger zLogger.ZLogger) (chan *JobStruct, io.Closer)

Types

type IngesterPdf

type IngesterPdf struct {
	// contains filtered or unexported fields
}

func NewIngester

func NewIngester(dbClient mediaserverproto.DatabaseClient, vfs fs.FS, concurrentWorkers int, ingestTimeout, ingestWait time.Duration, gsPath string, gsParams []string, tempDir string, logger zLogger.ZLogger) (*IngesterPdf, error)

func (*IngesterPdf) Close

func (i *IngesterPdf) Close() error

func (*IngesterPdf) Start

func (i *IngesterPdf) Start() error

type JobStruct

type JobStruct struct {
	Width    int64
	Height   int64
	Duration int64
	Size     int64
	MimeType string
	Path     string
	Storage  *storageStruct
	Missing  []string
	// contains filtered or unexported fields
}

type WriterNopcloser

type WriterNopcloser struct {
	io.Writer
}

func (WriterNopcloser) Close

func (WriterNopcloser) Close() error

Jump to

Keyboard shortcuts

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