package
Version:
v0.0.2
Opens a new window with list of versions in this module.
Published: Dec 26, 2023
License: MIT
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
¶
func SilentError(v ...any)
type AdminConfig struct {
Enabled bool `yaml:"enable"`
Path string `yaml:"path"`
Passphrase string `yaml:"passphrase"`
GuestLogin string `yaml:"guest_login_password"`
}
type Config struct {
Host string `yaml:"host"`
Port int `yaml:"listen"`
ImgTheme string `yaml:"img_theme"`
Cors bool `yaml:"cors"`
Hostnames []string `yaml:"hostnames"`
ErrorLog string `yaml:"error_log"`
DBCfg DBConfig `yaml:"db"`
AdminCfg AdminConfig `yaml:"admin"`
}
type Counter struct {
Id int `db:"id"`
Identifier string `db:"identifier"`
Count int `db:"count"`
CreatedTime time.Time `db:"created_id"`
}
type DBConfig struct {
Type string `yaml:"type"`
Dbname string `yaml:"dbname"`
Host string `yaml:"host"`
Username string `yaml:"username"`
Password string `yaml:"password"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.