Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Default = Config{ SmtpFile: "etc/smtp.json", NtfyFile: "etc/ntfy.json", Etcd: config.Etcd{ Endpoints: []string{ "127.0.0.1:2379", }, }, Log: config.Log{ DisableTimestamp: false, Level: "info", Format: "json", MaxSize: 100, MaxDays: 180, MaxBackups: 90, Compress: true, }, Server: config.Server{ Host: "0.0.0.0", Port: 5273, }, Otel: config.Opentrace{ Enable: true, DSN: "otel-collector:4317", }, }
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { SmtpFile string `json:"smtp-file" toml:"smtp-file"` NtfyFile string `json:"ntfy-file" toml:"ntfy-file"` Etcd config.Etcd `json:"etcd" toml:"etcd"` Log config.Log `json:"log" toml:"log"` Server config.Server `json:"server" toml:"server"` Otel config.Opentrace `json:"otel" toml:"otel"` }
Click to show internal directories.
Click to hide internal directories.