ingest

package
v2.0.0-...-5183bf9 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IngestTypeStrings = map[IngestType]string{
	IngestType_KEEP: "keep",
	IngestType_COPY: "copy",
	IngestType_MOVE: "move",
}
View Source
var IngestTypeValues = map[string]IngestType{
	"keep": IngestType_KEEP,
	"copy": IngestType_COPY,
	"move": IngestType_MOVE,
}

Functions

func NewWorkerPool

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

Types

type IngestType

type IngestType uint
const (
	IngestType_KEEP IngestType = iota
	IngestType_COPY
	IngestType_MOVE
)

type Ingester

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

func NewIngester

func NewIngester(indexer *indexer.ActionDispatcher, dbClient mediaserverdbproto.DBControllerClient, vfs fs.FS, concurrentWorkers int, ingestTimeout time.Duration, ingestWait time.Duration, logger zLogger.ZLogger) (*Ingester, error)

func (*Ingester) Close

func (i *Ingester) Close() error

func (*Ingester) Start

func (i *Ingester) Start() error

type JobStruct

type JobStruct struct {
	// 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