config

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package config loads and validates process settings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Address string

	Token string
}

Config contains operator-controlled settings for enabled transports.

func Parse

func Parse(name string, args []string, output io.Writer) (Config, error)

Parse reads flags and environment without creating services. Help returns flag.ErrHelp so command entries can exit before starting the application.

func (Config) Validate

func (c Config) Validate() error

Validate checks settings before creating listeners or application resources.

Jump to

Keyboard shortcuts

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