watcher

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusPending  = "pending"
	StatusRunning  = "running"
	StatusComplete = "complete"
	StatusError    = "error"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type QueueItem

type QueueItem struct {
	ID        int64
	Path      string
	Size      int64
	Status    string
	CreatedAt time.Time
	UpdatedAt time.Time
}

type Watcher

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

func New

func New(
	ctx context.Context,
	cfg config.WatcherConfig,
	configPath string,
	postie *postie.Postie,
	watchFolder string,
	outputFolder string,
) (*Watcher, error)

func (*Watcher) Close

func (w *Watcher) Close() error

func (*Watcher) Start

func (w *Watcher) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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