Documentation
¶
Overview ¶
Package server contains the core of the autodeb server. It creates all dependencies injects them at the right place.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
DB *DBConfig
HTTP *HTTPServerConfig
OAuth *OAuthConfig
AppConfig *app.Config
DataDirectory string
TemplatesDirectory string
StaticFilesDirectory string
TemplatesCacheEnabled bool
LogLevel log.Level
}
Config holds configuration that is needed by Server to initialize all of its dependencies.
type HTTPServerConfig ¶
type HTTPServerConfig struct {
Address string
}
HTTPServerConfig holds configuration related to the HTTP server
type OAuthConfig ¶ added in v0.6.0
OAuthConfig holds configuration related to the OAuth provider
Directories
¶
| Path | Synopsis |
|---|---|
|
Package app implements most of the application logic, it contains everything that is needed to serve a request.
|
Package app implements most of the application logic, it contains everything that is needed to serve a request. |
|
Package database is responsible for all database logic.
|
Package database is responsible for all database logic. |
|
Package models defines all models used within the application.
|
Package models defines all models used within the application. |
|
Package router provides the main router.
|
Package router provides the main router. |
|
internal/endpoints/webpages
Package webpages contains handlers that serve autodeb-server's web pages
|
Package webpages contains handlers that serve autodeb-server's web pages |
Click to show internal directories.
Click to hide internal directories.