Documentation
¶
Overview ¶
Package webfmwk/v6/tls/cmd hold function destined to be used for command line implementation. Please see the github.com/spf13/viper package, github.com/spf13/cobra or gitlab.frafos.net/gommon/golib/v2/cmd.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StringToLevelHookFunc ¶
func StringToLevelHookFunc() mapstructure.DecodeHookFunc
StringToLevelHookFunc allow tls.Level param to be processed by the spf13/cobra and spf13/viper utility. Use as following with frafos:
func fetchCfg() (cfg api.ServerCfg) {
cmd.ReadCfg(&cfg,
cmd_log.StringToSyslogHookFunc(),
tls.StringToLevelHookFunc())
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.