configuration

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package configuration allows external loading of config files and configuration via flags. The CoreConfig is reserved for the Core, whereas the AnalyzerConfig should be used when accessed from an Analyzer

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalyzerConfig

type AnalyzerConfig interface {
	GetProps(name string) interface{}
	IsDebug() bool
}

AnalyzerConfig used by the Analyzers or others

type Config

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

Config main struct

func (*Config) GetProps

func (c *Config) GetProps(name string) interface{}

GetProps from the loaded config-files by name

func (*Config) IsDebug

func (c *Config) IsDebug() bool

IsDebug determines weather the debug mode `--debugFlamalyzer` is on

func (*Config) LoadConfigFromFiles

func (c *Config) LoadConfigFromFiles()

LoadConfigFromFiles loads the data from the config-file and makes them available in the configProps

type CoreConfig

type CoreConfig interface {
	AnalyzerConfig
	LoadConfigFromFiles()
}

CoreConfig used by the Core

Jump to

Keyboard shortcuts

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