Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrUnsupportedField cer.Error = "unsupported field type" ErrTheModelHasEmptyStruct cer.Error = "an input struct has no fields" ErrNotAStruct cer.Error = "the configuration must be a struct" ErrNotAddressable cer.Error = "the main struct must be pointed out via pointer" ErrInternalFailure cer.Error = "an internal package error" ErrIncorrectFieldValue cer.Error = "variable has been found but has incorrect value" ErrValidationFailed cer.Error = "field validation failed" ErrIncorrectPriority cer.Error = "incorrect syslog priority" )
Variables ¶
This section is empty.
Functions ¶
func LoadSettings ¶ added in v1.3.1
func LoadSettings(settings interface{}) error
LoadSettings loads settings to a struct.
func ParseSyslogPriority ¶
ParseSyslogPriority converts string to syslog.Priority.
func PriorityDescription ¶
PriorityDescription returns description for syslog.Priority.
Types ¶
Click to show internal directories.
Click to hide internal directories.