Discover Packages
github.com/8thpark/daylang
server
config
package
Version:
v0.0.0-...-2ddcf66
Opens a new window with list of versions in this module.
Published: Aug 8, 2024
License: AGPL-3.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Config holds the configuration for the application.
New initialises a new Config struct.
func (c *Config ) Flags() []cli.Flag
Flags returns CLI flags for the application, that map to the Config struct.
Validate checks that all flag values are valid. Most of the time this can be done within the
Action() function of the flag, but sometimes it's necessary to validate based on the state of
other flags.
Environment is an enum for the different environments the application can run in.
Mode is an enum for the different modes the application can run in.
const (
EnvironmentDocker Mode = "docker"
EnvironmentLocal Mode = "local"
)
const (
ModeBridge Mode = "bridge"
ModeStandalone Mode = "standalone"
)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.