Documentation
¶
Index ¶
- func ErrorHandlingMiddleware() echo.MiddlewareFunc
- func HandleError(c echo.Context, err error) error
- func HandleInternalError(c echo.Context, message string, cause error) error
- func HandleNotFoundError(c echo.Context, message string) error
- func HandleValidationError(c echo.Context, message string) error
- func WrapHTTPError(httpErr *echo.HTTPError) *apperrors.Error
- type HealthCheck
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorHandlingMiddleware ¶
func ErrorHandlingMiddleware() echo.MiddlewareFunc
func HandleInternalError ¶
Types ¶
type HealthCheck ¶
HealthCheck is a named health check function.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(cfg *config.Config, app appService, presence twitch.ViewerPresence, websocketHandler http.Handler, webhookHandler http.Handler, twitchService domain.EventSubService, healthChecks []HealthCheck, httpMetrics *metrics.HTTPMetrics, metricsHandler http.Handler) (*Server, error)
Click to show internal directories.
Click to hide internal directories.