Documentation ¶
Index ¶
- Constants
- Variables
- func AddCommand(cmd *cobra.Command)
- func Execute()
- func GetBool(key string, val *bool)
- func GetDuration(key string, val *time.Duration)
- func GetFloat64(key string, val *float64)
- func GetInt(key string, val *int)
- func GetIntSlice(key string, val *[]int)
- func GetString(key string, val *string)
- func GetStringMapBool(key string, val *map[string]bool)
- func GetStringMapInt(key string, val *map[string]int)
- func GetStringMapString(key string, val *map[string]string)
- func GetStringMapStringSlice(key string, val *map[string][]string)
- func GetStringSlice(key string, val *[]string)
- func GetTime(key string, val *time.Time)
Constants ¶
View Source
const ( // MajorVersion of the server MajorVersion = 0 // MinorVersion of the server MinorVersion = 1 // Product name of the server Product = "Pass Around Novel Server" )
Variables ¶
View Source
var ( // Verbose is the number of verbosity levels requested by the user Verbose int // Quiet is the number of quiet levels requested by the user Quiet int )
View Source
var (
// ConfigUpdated contains handlers to call once the configuration file changes or is loaded
ConfigUpdated []func()
)
Functions ¶
func GetDuration ¶
GetDuration reads a duration from the configuration file
func GetFloat64 ¶
GetFloat64 reads a 64-bit float from the configuration file
func GetIntSlice ¶
GetIntSlice reads an integer array from the configuration file
func GetStringMapBool ¶
GetStringMapBool reads a boolean dictionary from the configuration file
func GetStringMapInt ¶
GetStringMapInt reads an int dictionary from the configuration file
func GetStringMapString ¶
GetStringMapString reads a string dictionary from the configuration file
func GetStringMapStringSlice ¶
GetStringMapStringSlice reads a string array dictionary from the configuration file
func GetStringSlice ¶
GetStringSlice reads a string array from the configuration file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.