settings

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package settings deals with the configuration file. Duh.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	WebPort              int64
	LiveTimeout          time.Duration
	ScanIntervalNet      time.Duration
	ScanIntervalDev      time.Duration
	ScanWorkerCount      int64
	Debug                bool
	LogLevel             string
	PoolSize             int64
	ProbeIntervalUpdates time.Duration
	PingInterval         time.Duration
	PingTimeout          time.Duration
	PingCount            int64
}

Options defines several configurable parameters used throughout the application.

var Settings *Options

func Parse

func Parse(path string) (*Options, error)

Parse reads the configuration file at the given path. If path is an empty string, it uses the global default path.

Jump to

Keyboard shortcuts

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