config

package
v0.0.0-...-b2150b7 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package config has configuration responsibilities

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Debug   bool
	Default *rule.Rule `yaml:"default"`
	Rules   []*rule.Rule
}

Config is a struct that holds configuration

func (*Config) GetDebug

func (c *Config) GetDebug() bool

GetDebug returns the debug flag

func (*Config) GetDefaultRule

func (c *Config) GetDefaultRule() *rule.Rule

GetDefaultRule returns the default rule

func (*Config) GetRules

func (c *Config) GetRules() []*rule.Rule

GetRules returns the rules

Jump to

Keyboard shortcuts

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