Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrCreateHealthCheck errors.Msg = "failed to create health checker" ErrSetupTelemetry errors.Msg = "failed to set up telemetry" ErrSetupDatabase errors.Msg = "failed to set up database" ErrSetupService errors.Msg = "failed to set up service handler" ErrSetupServer errors.Msg = "failed to set up server" ErrStartServer errors.Msg = "failed to start server" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) RouteHandler ¶
func (app *App) RouteHandler() serv.RouteHandler
type Config ¶
type Config struct { Log struct { Level zerolog.Level `default:"info"` WithTimestamp bool `env:"LOG_TIMESTAMP" default:"true"` AccessLog bool `env:"LOG_ACCESS" default:"true"` } `env:",include"` Telemetry telemetry.Config ServerPort serv.Port `default:"8080"` ServerTLS easytls.Config DB DBConfig `env:",include"` }
Config is the configuration for App.
Click to show internal directories.
Click to hide internal directories.