Documentation
¶
Index ¶
- type App
- type Cache
- type CacheCredential
- type CacheOption
- type Cfg
- type DB
- type DBCredential
- type DBOptions
- type Log
- type LogConsole
- type LogFile
- type LogNotify
- type LogOtel
- type LogRotation
- type LogType
- type Otel
- type OtelLogOptions
- type OtelOptions
- type OtelServer
- type Provider
- type SMTP
- type SMTPCredential
- type Security
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
Disabled bool `yaml:"disabled"`
DBName string `yaml:"dbname"`
Port int `yaml:"port"`
Address string `yaml:"address"`
Credential CacheCredential `yaml:"credential"`
Options CacheOption `yaml:"options"`
}
type CacheCredential ¶
type CacheOption ¶ added in v0.2.0
type Cfg ¶
type Cfg struct {
App App `yaml:"app"`
Otel Otel `yaml:"otel"`
Server map[string]Server `yaml:"server"`
SMTP map[string]SMTP `yaml:"smtp"`
Template map[string]string `yaml:"template"`
DB map[string]DB `yaml:"db"`
Cache map[string]Cache `yaml:"cache"`
Log Log `yaml:"log"`
Provider map[string]Provider `yaml:"provider"`
Security Security `yaml:"security"`
}
func ProvideConfig ¶
type DBCredential ¶
type DBOptions ¶
type DBOptions struct {
Timezone string `yaml:"timezone"`
Sslmode string `yaml:"sslmode"`
ConnectionTimeout int `yaml:"connection.timeout"`
MaxConnectionLifetime int `yaml:"max.connection.lifetime"`
MaxOpenConnection int `yaml:"max.open.connection"`
MaxIdleConnection int `yaml:"max.idle.connection"`
}
type LogConsole ¶
type LogFile ¶
type LogFile struct {
Disabled bool `yaml:"disabled"`
Level int `yaml:"level"`
Rotation LogRotation `yaml:"rotation"`
}
type LogRotation ¶
type LogType ¶ added in v0.3.1
type LogType struct {
Disabled bool `yaml:"disabled"`
Notify LogNotify `yaml:"notify"`
Otel LogOtel `yaml:"otel"`
Console LogConsole `yaml:"console"`
File LogFile `yaml:"file"`
}
type Otel ¶ added in v0.4.0
type Otel struct {
Tracer bool `yaml:"tracer"`
Metric bool `yaml:"metric"`
Logs bool `yaml:"logs"`
Server OtelServer `yaml:"server"`
Options OtelOptions `yaml:"options"`
}
type OtelLogOptions ¶ added in v1.0.0
type OtelOptions ¶ added in v1.0.0
type OtelOptions struct {
Logs OtelLogOptions `yaml:"logs"`
}
type OtelServer ¶ added in v0.4.0
type SMTP ¶
type SMTP struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
Credential SMTPCredential `yaml:"credential"`
}
type SMTPCredential ¶
Click to show internal directories.
Click to hide internal directories.