Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Development bool `json:"development,omitempty"` HTTP *httpserver.Config `json:"http,omitempty"` DB *db.Config `json:"db,omitempty"` SMTP *smtpserver.Config `json:"smtp,omitempty"` Log *zap.Config `json:"log,omitempty"` Init *InitConfig `json:"init,omitempty"` BadActor *badactorservice.Config `json:"badactor,omitempty"` Cleanup *cleanup.Config `json:"cleanup,omitempty"` Banner *banner.Config `json:"banner,omitempty"` }
Config contains all the configuration options for the server. Everything here should be operator-accessible.
type InitConfig ¶
type InitConfig struct { Username string `json:"username,omitempty"` Password string `json:"password,omitempty"` }
InitConfig defines the config needed to bootstrap the initial admin user.
type LoggerService ¶ added in v0.1.8
type Server ¶
type Server struct { Config Config Info *letterbox.Info DB letterbox.Datastore HTTP *httpserver.HTTPService SMTP *smtpserver.SMTPService Cleanup *cleanup.Cleanup RegisteredServices []Service Hasher letterbox.ArgonHasher Banner *banner.Builder }
Server describes the server configuration.
func (*Server) RegisterService ¶
Click to show internal directories.
Click to hide internal directories.