Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Gcfg = Configure{} VERSION = "unknown" BUILDTIME = "unknown time" GITCOMMIT = "unknown git commit" SITE = "https://github.com/lexkong/grapehttp" )
Functions ¶
This section is empty.
Types ¶
type Configure ¶
type Configure struct { Conf *os.File `yaml:"-"` Addr string `yaml:"addr"` DbInit bool `yaml:"-"` DbInitForce bool `yaml:"-"` Count bool `yaml:"count"` AdminUsername string `yaml:"admin_username"` AdminPassword string `yaml:"admin_password"` AdminEmail string `yaml:"admin_email"` Root string `yaml:"root"` Rbac Rbac `yaml:"rbac"` HTTPAuth string `yaml:"httpauth"` SimpleAuth bool `yaml:"simpleauth"` Cert string `yaml:"cert"` Key string `yaml:"key"` Cors bool `yaml:"cors"` Theme string `yaml:"theme"` XHeaders bool `yaml:"xheaders"` Upload bool `yaml:"upload"` Delete bool `yaml:"delete"` NoAccess bool `yaml:"noaccess"` PlistProxy string `yaml:"plistproxy"` Title string `yaml:"title"` Debug bool `yaml:"debug"` GoogleTrackerId string `yaml:"google-tracker-id"` Auth struct { Type string `yaml:"type"` OpenID string `yaml:"openid"` HTTP string `yaml:"http"` } `yaml:"auth"` }
func LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.