package
Version:
v0.0.0-...-b8b2eb8
Opens a new window with list of versions in this module.
Published: Feb 5, 2024
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
Mode string `yaml:"mode"`
Database Database `yaml:"database"`
Logging Logging `yaml:"logging"`
Storage Storage `yaml:"storage"`
TLS TLS `yaml:"tls"`
Token Token `yaml:"token"`
}
type Database struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
User string `yaml:"user"`
Password string `yaml:"password"`
DBName string `yaml:"dbname"`
SSLMode string `yaml:"sslmode"`
}
type Logging struct {
File string `yaml:"file"`
Level int `yaml:"level"`
}
type Storage struct {
RootDirectory string `yaml:"root_dir"`
TasksDirectory string `yaml:"templates_dir"`
NotesDirectory string `yaml:"users_dir"`
}
type TLS struct {
ServerCertPath string `yaml:"server_cert_path"`
ServerKeyPath string `yaml:"server_key_path"`
ClientCARootPath string `yaml:"client_ca_root_path"`
}
type Token struct {
Issuer string `yaml:"issuer"`
Audience string `yaml:"audience"`
Secret string `yaml:"secret"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.