Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetChromaStyles ¶
func GetChromaStyles() []string
GetChromaStyles returns the list of available syntax highlighting themes
func GetTimezones ¶
func GetTimezones() []string
GetTimezones returns the list of available timezones
Types ¶
type Config ¶
type Config struct { Server struct { Host string `mapstructure:"host"` Port int `mapstructure:"port"` } Site struct { SecureCookie bool `mapstructure:"secure_cookie"` Domain string `mapstructure:"domain"` Theme string `mapstructure:"theme"` } `mapstructure:"site"` DB struct { Path string `mapstructure:"path"` LogLevel string `mapstructure:"log_level"` } Storage struct { Provider string `mapstructure:"provider"` // "local" or "s3" S3 struct { Bucket string `mapstructure:"bucket"` Region string `mapstructure:"region"` Endpoint string `mapstructure:"endpoint"` AccessKey string `mapstructure:"access_key"` SecretKey string `mapstructure:"secret_key"` } LocalPath string `mapstructure:"local_path"` // Path for local storage } Debug bool `mapstructure:"debug"` }
func InitConfig ¶
func (*Config) GetGormLogLevel ¶
GetGormLogLevel returns the gorm logger level based on the config
func (*Config) ValidateS3Config ¶
ValidateS3Config validates S3 configuration if S3 provider is selected
Click to show internal directories.
Click to hide internal directories.