config

package
v0.0.0-...-499b258 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentConfig

type AgentConfig struct {
	SharedConfig

	// ListenAddress is the address to listen on
	ListenAddress string `split_words:"true" default:":8081"`
}

func LoadAgentConfig

func LoadAgentConfig() (*AgentConfig, error)

type ServerConfig

type ServerConfig struct {
	SharedConfig

	// ListenAddress is the address to listen on
	ListenAddress string `split_words:"true" default:":8080"`
}

func LoadServerConfig

func LoadServerConfig() (*ServerConfig, error)

type SharedConfig

type SharedConfig struct {
	// LogLevel is the log level to use
	LogLevel string `split_words:"true" default:"info"`
}

Jump to

Keyboard shortcuts

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