config

package
v0.0.0-...-0288090 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	C        Config
	Verbose  bool
	Debug    bool
	DB       *bolt.DB
	Hostname string

	ScriptEngine *otto.Otto
	Scripts      map[string]*otto.Script
)

Functions

func Close

func Close() error

func Init

func Init(f string) error

Types

type Config

type Config struct {
	Confdir   string
	Files     []File
	Scriptdir string

	Queues struct {
		Mail map[string]struct {
			Beanstalkd string
			From       string
			To         []string
			Subject    string
		}
		Newline map[string]struct {
			Beanstalkd string
			Queue      string
		}
	}
	Db string
}

type File

type File struct {
	Path       string
	To         string
	Tags       []string
	Recurse    bool
	IncludeExt []string
	Regex      string
	Regexp     *regexp.Regexp
	Linediff   bool
}

Jump to

Keyboard shortcuts

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