flag

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Debug            bool              // Set LogLevel to Debug
	DebugServerPort  int               // Port for the debug server
	LogFormat        logging.LogFormat // Specify the log output format
	ConfigPath       string            // Path to the configuration file
	ListenAddr       string            // Address to listen on
	SiteRoot         string            // Root URL of the site
	RoutePrefix      string            // Route prefix
	HistorySize      int               // Size of the history ring buffer
	SkipTLS          bool              // Skip TLS for all receivers
	RetryCount       int               // Number of retries for notifications
	RetryDelay       time.Duration     // Delay between retries
	OverriddenValues map[string]any    // Overridden values from environment
}

Options holds the application configuration.

func ParseFlags

func ParseFlags(args []string, version string) (Options, error)

ParseFlags parses flags and environment variables.

Jump to

Keyboard shortcuts

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