Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeanstalkConfig ¶
type BeanstalkConfig struct { Address string `yaml:"address"` Pool PoolConfig `yaml:"pool"` }
type Config ¶
type Config struct { Logger LoggerConfig `yaml:"logger"` Beanstalk BeanstalkConfig `yaml:"beanstalk"` Http HttpConfig `yaml:"http"` Security SecurityConfig `yaml:"security"` }
func LoadOrDefault ¶
type EncoderConfig ¶
type EncoderConfig struct { MessageKey string `yaml:"message_key"` LevelKey string `yaml:"level_key"` TimeKey string `yaml:"time_key"` NameKey string `yaml:"name_key"` CallerKey string `yaml:"caller_key"` FunctionKey string `yaml:"function_key"` StacktraceKey string `yaml:"stacktrace_key"` LineEnding string `yaml:"line_ending"` LevelEncoder zapcore.LevelEncoder `yaml:"level_encoder"` TimerEncoder zapcore.TimeEncoder `yaml:"time_encoder"` DurationEncoder zapcore.DurationEncoder `yaml:"duration_encoder"` CallerEncoder zapcore.CallerEncoder `yaml:"caller_encoder"` NameEncoder zapcore.NameEncoder `yaml:"name_encoder"` ConsoleSeparator string `yaml:"console_separator"` }
type HttpConfig ¶
type LoggerConfig ¶
type LoggerConfig struct { Level zap.AtomicLevel `yaml:"level"` Encoding string `yaml:"encoding"` Encoder EncoderConfig `yaml:"encoder"` InitialFields map[string]interface{} `yaml:"initial_fields"` }
type PoolConfig ¶
type SecurityConfig ¶
type SecurityConfig struct { Secret string `yaml:"secret"` TokenTTL time.Duration `yaml:"token_ttl"` BCryptCost int `yaml:"bcrypt_cost"` Users []UserConfig `yaml:"users"` }
type UserConfig ¶
Click to show internal directories.
Click to hide internal directories.