package
Version:
v1.0.3
Opens a new window with list of versions in this module.
Published: Feb 20, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type App struct {
Appname string `toml:"app_name"`
Version string `toml:"version"`
Debug bool `toml:"debug"`
TimeZone string `toml:"time_zone"`
LogFile string `toml:"log_file"`
LogLevel string `toml:"log_level"`
Assets string `toml:"assets"`
CodeTheme string `toml:"code_theme"`
}
type Conf struct {
App `toml:"app"`
Server `toml:"server"`
File `toml:"file"`
User `toml:"user"`
Session `toml:"session"`
}
type File struct {
Path string `toml:"path"`
Driver string `toml:"driver"`
}
type Server struct {
Address string `toml:"address"`
CSRFTokenLength uint8 `toml:"csrf_token_length"`
CSRFContextKey string `toml:"csrf_context_key"`
CSRFCookieName string `toml:"csrf_cookie_name"`
CSRFCookiePath string `toml:"csrf_cookie_path"`
CSRFCookieMaxAge int `toml:"csrf_cookie_maxage"`
}
type Session struct {
Secret string `toml:"secret"`
Key string `toml:"key"`
Path string `toml:"path"`
MaxAge int `toml:"max_age"`
HttpOnly bool `toml:"http_only"`
}
type User struct {
Names []string `toml:"names"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.