archivar

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2021 License: Unlicense Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Archivar

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

func New

func New(config Config, logger *logrus.Logger) Archivar

func (*Archivar) Dump

func (s *Archivar) Dump()

func (*Archivar) RunJobs

func (s *Archivar) RunJobs()

type Config

type Config struct {
	Settings struct {
		DefaultInterval int
		Log             struct {
			Debugging bool
		}
	}
	Archivers  map[string]ConfigSub
	Gatherers  map[string]ConfigSub
	Filters    map[string]ConfigSub
	Processors map[string]ConfigSub
	Jobs       map[string]job.JobConfig
}

type ConfigSub

type ConfigSub struct {
	Interval int
	Type     string
	Config   interface{}
}

ConfigSub is used with an empty Interface to give to the respective package for reflection

Jump to

Keyboard shortcuts

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