Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mode ¶
type Mode uint8
Mode represents which services the application should run. Uses bitmask for easy combination.
func ParseMode ¶
ParseMode parses a comma-separated mode string into a Mode bitmask. Valid inputs: "all", "web", "api", "ws", "api,ws", "web,api", etc. Returns error for empty or invalid mode strings.
func (Mode) PortEnvKey ¶
PortEnvKey returns the environment variable name for the port of a single-mode constant.
Click to show internal directories.
Click to hide internal directories.