directorywatcher

package
v1.12.5 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Watch

func Watch(ctx context.Context, config Config)

Types

type Config

type Config struct {
	Sources        []Source
	RetryCount     int           `yaml:"retryCount"`
	DestinationUrl string        `yaml:"destinationUrl"`
	ScanInterval   time.Duration `yaml:"scanInterval"`
	Timeout        time.Duration `yaml:"timeout"`
}

Note: struct fields must be public in order for unmarshal to correctly populate the data.

func LoadConfig

func LoadConfig(data []byte) (Config, error)

type Source

type Source struct {
	Parser    string
	Directory string
	Sender    string
}

Jump to

Keyboard shortcuts

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