config

package
v0.0.0-...-e8670d8 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MIT 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 {
	ListenHost   string
	ListenPort   string
	ListenScheme string

	ServerBaseURL string

	ExecCommand     []string
	WatchForChanges bool

	StandaloneMode bool
	ShowVersion    bool
}

Config holds the application configuration options.

func Load

func Load() *Config

Loads the configuration.

func (*Config) ListenHostWithPort

func (c *Config) ListenHostWithPort() string

Returns the host:port pair.

func (*Config) ListenURL

func (c *Config) ListenURL() string

Returns the URL where to listen.

Jump to

Keyboard shortcuts

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