config

package
v0.0.0-...-bb25113 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: GPL-3.0 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 {
	HostPort            string `toml:"hostport"`
	IPv4                string `toml:"ipv4"`
	IPv6                string `toml:"ipv6"`
	Refresh             int    `toml:"refresh"`
	LastHeard           int    `toml:"lastheard"`
	UrfFile             string `toml:"urffile"`
	UrfPidFile          string `toml:"urfpidfile"`
	Email               string `toml:"email"`
	Debug               bool   `toml:"debug"`
	SubPath             string `toml:"subpath"`
	CallsignCountryFile string `toml:"callsigncountryfile"`
}

func NewConfigFromEnv

func NewConfigFromEnv() (*Config, error)

func NewConfigFromFile

func NewConfigFromFile(searchPaths []string) (*Config, error)

Jump to

Keyboard shortcuts

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