config

package
v2.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Ls     Ls       `yaml:"ls"`
	Ignore []string `yaml:"ignore"`
	*sync.RWMutex
}

func NewConfig

func NewConfig(ls Ls, ignore []string) *Config

func (*Config) GetConfig

func (config *Config) GetConfig(index RuleIndex, path string) map[string][]rule.Rule

func (*Config) GetIgnore

func (config *Config) GetIgnore() []string

func (*Config) GetIgnoreIndex

func (config *Config) GetIgnoreIndex() map[string]bool

func (*Config) GetIndex

func (config *Config) GetIndex(list Ls) (RuleIndex, error)

func (*Config) GetLs

func (config *Config) GetLs() Ls

func (*Config) ShouldIgnore

func (config *Config) ShouldIgnore(ignoreIndex map[string]bool, path string) bool

type Ls

type Ls map[string]interface{}

type RuleIndex

type RuleIndex map[string]map[string][]rule.Rule

Jump to

Keyboard shortcuts

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