Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultConfigEnv = "default"
DefaultConfigEnv is the name of the environment, which is taken as default unless another value is passed.
View Source
const DefaultConfigName = "rcon.yaml"
DefaultConfigName sets the default config file name.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config allows to take a remote server address and password from the configuration file. This enables not to specify these flags when running the CLI.
Example: ```yaml default:
address: "127.0.0.1:16260" password: "password"
```.
func GetConfig ¶ added in v0.8.1
GetConfig finds and parses config file for details of connecting to a remote server.
func ReadYamlConfig ¶
ReadYamlConfig reads config data from yaml file.
Click to show internal directories.
Click to hide internal directories.