Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct { conf.Version Web WebServer Email SMTP AdminUser string `conf:"default:admin"` AdminPass string `conf:"default:admin,noprint" json:"-"` Domain string `conf:"default:http://localhost:8080"` Database string `conf:"default:$HOME/.wg-concierge"` WireGuard WireGuard Log Logging }
App holds the application configuration
func (*App) PrettyString ¶
PrettyString generates a JSON well formated string representation of the configuraiton
type Logging ¶
type Logging struct {
Prefix string `conf:"default:[WG] :"`
}
Logging hold the log configuration settings
type SMTP ¶
type SMTP struct { Server string `conf:"default:smtp.sendgrid.net"` Port int `conf:"default:587"` From string `conf:"default:WG Concierge<no-reply@wg-concierge>"` Username string `conf:"required"` Password string `conf:"required,noprint" json:"-"` }
SMTP hold the smtp connection configuration settings
type WebServer ¶
type WebServer struct { Host string `conf:"default:localhost:8080"` ReadTimeout time.Duration `conf:"default:5s"` WriteTimeout time.Duration `conf:"default:30s"` IdleTimeout time.Duration `conf:"default:30s"` ReadHeaderTimeout time.Duration `conf:"default:5s"` ShutdownTimeout time.Duration `conf:"default:5s"` }
WebServer holds the server configuration settings
Click to show internal directories.
Click to hide internal directories.