Documentation
¶
Index ¶
Constants ¶
View Source
const ( DevelopEnv = "development" ProductEnv = "production" OldProductEnv = "product" )
Variables ¶
View Source
var NoDbDriver = errors.New("no db driver for this server")
Functions ¶
This section is empty.
Types ¶
type Basic ¶
type Basic struct {
WwwRoot string `yaml:"www_root"`
Port int `yaml:"port"`
ReadT0 int `yaml:"read_timeout"`
WriteT0 int `yaml:"write_timeout"`
PublicDir string `yaml:"public_dir"`
UploadsDir string `yaml:"uploads_dir"`
IgnoreUrlCase bool `yaml:"ignore_url_case"`
HashSecret string `yaml:"secret"`
Env string `yaml:"env"`
DbEngine string `yaml:"db_engine"`
Version string `yaml:"version"`
HttpsEnable bool `yaml:"https"`
HttpsCertFile string `yaml:"https_certfile"`
HttpsKey string `yaml:"https_key"`
DefaultType string `yaml:"default_type"`
EnableKeepAlive bool `yaml:"keep_alive"`
}
type Config ¶
Click to show internal directories.
Click to hide internal directories.