Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AirportHandler ¶
type AirportHandler struct {
AirportService *airports.AirportService
}
func NewAirportHandler ¶
func NewAirportHandler(router chi.Router, airportService *airports.AirportService) *AirportHandler
func (*AirportHandler) GetAirport ¶
func (h *AirportHandler) GetAirport(w http.ResponseWriter, r *http.Request)
func (*AirportHandler) GetAirports ¶
func (h *AirportHandler) GetAirports(w http.ResponseWriter, r *http.Request)
func (*AirportHandler) PatchAirport ¶
func (h *AirportHandler) PatchAirport(w http.ResponseWriter, r *http.Request)
type AuthHandler ¶
type AuthHandler struct {
// contains filtered or unexported fields
}
func NewAuthHandler ¶
func NewAuthHandler(router chi.Router, authService *auth.AuthService) *AuthHandler
func (*AuthHandler) Callback ¶
func (h *AuthHandler) Callback(w http.ResponseWriter, r *http.Request)
func (*AuthHandler) Check ¶
func (h *AuthHandler) Check(w http.ResponseWriter, r *http.Request)
func (*AuthHandler) Login ¶
func (h *AuthHandler) Login(w http.ResponseWriter, r *http.Request)
func (*AuthHandler) Logout ¶
func (h *AuthHandler) Logout(w http.ResponseWriter, r *http.Request)
type ChartHandler ¶
type ChartHandler struct { AirportService *airports.AirportService ChartService *charts.ChartService }
func NewChartHandler ¶
func NewChartHandler(router chi.Router, chartService *charts.ChartService, airportService *airports.AirportService) *ChartHandler
func (*ChartHandler) GetAllCharts ¶
func (h *ChartHandler) GetAllCharts(w http.ResponseWriter, r *http.Request)
func (*ChartHandler) GetCharts ¶
func (h *ChartHandler) GetCharts(w http.ResponseWriter, r *http.Request)
type ExternalHandler ¶
type ExternalHandler struct {
// contains filtered or unexported fields
}
func NewExternalHandler ¶
func NewExternalHandler(router chi.Router, airportService *airports.AirportService) *ExternalHandler
type Handlers ¶
type Handlers struct { AirportHandler *AirportHandler AuthHandler *AuthHandler PIREPHandler *PIREPHandler ChartHandler *ChartHandler ExternalHandler *ExternalHandler }
func RegisterHandlers ¶
type PIREPHandler ¶
type PIREPHandler struct {
PIREPService *pireps.PIREPService
}
func NewPIREPHandler ¶
func NewPIREPHandler(router chi.Router, pirepService *pireps.PIREPService) *PIREPHandler
func (*PIREPHandler) GetPIREPs ¶
func (h *PIREPHandler) GetPIREPs(w http.ResponseWriter, r *http.Request)
func (*PIREPHandler) PutPIREP ¶
func (h *PIREPHandler) PutPIREP(w http.ResponseWriter, r *http.Request)
type ServiceHandler ¶
type ServiceHandler struct {
// contains filtered or unexported fields
}
func NewServiceHandler ¶
func NewServiceHandler(router *chi.Mux, db *gorm.DB) *ServiceHandler
This should be added by the main server package so it is not part of the versioned group. These register routes that are used by Kubernetes or other health checkers to determine if the server is alive and should not be versioned.
func (*ServiceHandler) Healthz ¶
func (h *ServiceHandler) Healthz(w http.ResponseWriter, r *http.Request)
func (*ServiceHandler) Ping ¶
func (h *ServiceHandler) Ping(w http.ResponseWriter, r *http.Request)
func (*ServiceHandler) Readyz ¶
func (h *ServiceHandler) Readyz(w http.ResponseWriter, r *http.Request)
type Services ¶
type Services struct { AirportService *airports.AirportService AuthService *auth.AuthService ChartService *charts.ChartService PIREPService *pireps.PIREPService }
Click to show internal directories.
Click to hide internal directories.