program

package
v0.0.0-...-9ab1ab0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: GPL-2.0 Imports: 10 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 {
	BaseDir string

	CheckBanner *regexp.Regexp

	ServerIPList []netip.Addr
	Timeout      int
	LoginTimeout int

	// Is only set by command line option -u.
	User     string
	Password string
	// contains filtered or unexported fields
}

func LoadConfig

func LoadConfig() (*Config, error)

Use most specific config file; ignore others.

func (*Config) GetUserPass

func (c *Config) GetUserPass(hostName string) (string, string, error)

func (*Config) GetVal

func (c *Config) GetVal(key string) string

Jump to

Keyboard shortcuts

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