config

package
v0.0.0-...-5599fc3 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2016 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Reading of configuration files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalyzerConfig

type AnalyzerConfig struct {
	Path       string
	Args       []string
	MimeFilter []string
}

AnalyzerConfig is a json-decoded configuration for a plugin

type Config

type Config struct {
	MonitoredDirectory string
	Analyzers          []AnalyzerConfig
	Loggers            []LoggerConfig
}

Config is a json-decoded configuration for running mandrake

func ReadConfigFile

func ReadConfigFile(filename string) (*Config, error)

ReadConfigFile reads in the given JSON encoded configuration file and returns the Config object associated with the decoded configuration data.

type LoggerConfig

type LoggerConfig struct {
	Path string
	Args []string
}

LoggerConfig is a json-decoded configuration for a logger plugin

Jump to

Keyboard shortcuts

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