config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddLine added in v1.0.0

type AddLine struct {
	Name     string `json:"name"`
	Value    string `json:"value"`
	Filtered bool   `json:"filtered"`
}

type Config

type Config struct {
	Links                 []string  `json:"links"`
	Port                  int       `json:"port"`
	IP                    string    `json:"ip"`
	Domains               []string  `json:"domains"`
	EnableServer          bool      `json:"enable_server"`
	WithEq                bool      `json:"with_eq"`
	FilterLines           []int     `json:"filter_lines"`
	AddLines              []AddLine `json:"add_lines"`
	AddSum                bool      `json:"add_sum"`
	SumSymbols            string    `json:"sum_symbols"`
	UpdateInterval        int       `json:"update_interval"`
	WriteToCSV            bool      `json:"write_to_csv"`
	CSVPath               string    `json:"csv_path"`
	WriteToTXT            bool      `json:"write_to_txt"`
	TXTPath               string    `json:"txt_path"`
	TXTEncoding           string    `json:"txt_encoding"`
	DatasetName           string    `json:"dataset_name"`
	Debug                 bool      `json:"debug"`
	StopOnLineCountChange bool      `json:"stop_on_line_count_change"`
}

func Load

func Load(path string) (*Config, error)

func (*Config) FilterLinesZeroIndexed

func (c *Config) FilterLinesZeroIndexed() []int

FilterLinesZeroIndexed returns filter lines converted to zero-based indices

func (*Config) Save added in v1.0.0

func (c *Config) Save(path string) error

Jump to

Keyboard shortcuts

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