Documentation ¶
Index ¶
- func ContainsString(slice []string, searchTerm string) bool
- func GenerateSurveyVersionID(oldVersions []*studyTypes.Survey) string
- func InitLogger(logLevel string, includeSrc bool, logToFile bool, logFilename string, ...)
- func IsURLSafe(value string) bool
- func ParseDurationString(value string) (time.Duration, error)
- func ReadConfigFromEnvAndInitLogger(envLogLevel string, envLogIncludeSrc string, envLogToFile string, ...)
- type LoggerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsString ¶
func GenerateSurveyVersionID ¶
func GenerateSurveyVersionID(oldVersions []*studyTypes.Survey) string
func InitLogger ¶
Types ¶
type LoggerConfig ¶
type LoggerConfig struct { LogToFile bool `json:"log_to_file" yaml:"log_to_file"` Filename string `json:"filename" yaml:"filename"` MaxSize int `json:"max_size" yaml:"max_size"` MaxAge int `json:"max_age" yaml:"max_age"` MaxBackups int `json:"max_backups" yaml:"max_backups"` LogLevel string `json:"log_level" yaml:"log_level"` IncludeSrc bool `json:"include_src" yaml:"include_src"` CompressOldLogs bool `json:"compress_old_logs" yaml:"compress_old_logs"` }
Click to show internal directories.
Click to hide internal directories.