Documentation ¶
Index ¶
- Constants
- func LoadConfig(filePath string) (err error)
- func LoadLogging() (err error)
- func LoggerMiddleware(h http.Handler) http.Handler
- func StartDB() (userRepository application.UserRepository, ...)
- func StartServer(rs *application.RegistrationService, ps *application.PreferenceService, ...) (err error)
- func StopDB() (err error)
- type Database
- type LoggerResponseWriter
- type Logging
- type PerfectyConfig
- type Server
- type Ssl
Constants ¶
View Source
const (
TraceKey = "trace"
)
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
func LoadLogging ¶
func LoadLogging() (err error)
func StartDB ¶
func StartDB() (userRepository application.UserRepository, notificationRepository application.NotificationRepository, err error)
StartDB Starts the DB and returns the repository implementations according to the driver
func StartServer ¶
func StartServer(rs *application.RegistrationService, ps *application.PreferenceService, ss *application.ScheduleService) (err error)
Types ¶
type LoggerResponseWriter ¶
type LoggerResponseWriter struct { http.ResponseWriter StatusCode int }
func NewLoggerResponseWriter ¶
func NewLoggerResponseWriter(w http.ResponseWriter) (lrw *LoggerResponseWriter)
func (*LoggerResponseWriter) WriteHeader ¶
func (lrw *LoggerResponseWriter) WriteHeader(code int)
type PerfectyConfig ¶
var (
Config PerfectyConfig
)
Click to show internal directories.
Click to hide internal directories.