config

package
v0.0.0-...-963a1a8 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoServerEntries = errors.New("please add a few server= entries to your .ini")
View Source
var ErrNoSuchSection = errors.New("section does not exist")

Functions

This section is empty.

Types

type Config

type Config struct {
	Logger *slog.Logger
}

func (*Config) GetRbls

func (c *Config) GetRbls(cfg *ini.File) []string

GetRbls returns all rbls from the config

func (*Config) GetTargets

func (c *Config) GetTargets(cfg *ini.File) []string

GetTargets returns all targets from the config

func (*Config) LoadFile

func (c *Config) LoadFile(path string) (*ini.File, error)

LoadFile ...

func (*Config) ValidateConfig

func (c *Config) ValidateConfig(cfg *ini.File, section string) error

ValidateConfig validate the supplied configuration, e.g. check if we have "server="

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳