Versions in this module Expand all Collapse all v0 v0.26.7 Jun 12, 2024 v0.26.6 Jun 8, 2024 Changes in this version + const BearerAuthScopes + func Authenticate(verifier jwtVerifier, ctx context.Context, ...) error + func GetSwagger() (swagger *openapi3.T, err error) + func NewAuthenticator(verifier jwtVerifier) openapi3filter.AuthenticationFunc + func NewUnableToRetrieveUserFromCtx(err error) error + func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error) + func RegisterHandlers(router EchoRouter, si ServerInterface) + func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string) + type BulkInviteMembersByEmail struct + Emails []string + type BulkInviteMembersByEmailJSONRequestBody = BulkInviteMembersByEmail + type Config struct + AllowedCorsOrigin []string + Application *app.App + Ctx context.Context + JwtVerifier jwtVerifier + Logger *logs.Logger + Port int + type ConfirmInvitationJSONRequestBody = ConfirmInvitationRequest + type ConfirmInvitationRequest struct + Email string + InvitationToken string + Password string + type CreateAccountJSONRequestBody = CreateAccountRequest + type CreateAccountRequest struct + AccountName string + Email string + Password string + type CreateMonitorJSONRequestBody = CreateMonitorRequest + type CreateMonitorRequest struct + CheckIntervalInSeconds int + EndpointUrl string + type DefaultError = ErrorResponse + type EchoRouter interface + CONNECT func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + DELETE func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + GET func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + HEAD func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + OPTIONS func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + PATCH func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + POST func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + PUT func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + TRACE func(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route + type EditMonitorJSONRequestBody = EditMonitorRequest + type EditMonitorRequest struct + CheckIntervalInSeconds int + EndpointUrl string + type ErrorResponse struct + Error string + Message string + type FullIncident struct + Cause string + CheckedUrl string + CreatedAt time.Time + Id string + MonitorId string + ResolvedAt *time.Time + ResponseStatus *int + type GetAllIncidentsParams struct + Limit *int + Page *int + type GetAllIncidentsPayload struct + Data []Incident + Page int + PageCount int + PerPage int + TotalCount int64 + type GetAllMonitorByIdPayload struct + Data Monitor + type GetAllMonitorsParams struct + Limit *int + Page *int + type GetAllMonitorsPayload struct + Data []Monitor + Page int + PageCount int + PerPage int + TotalCount int64 + type GetIncidentByByIdPayload struct + Data FullIncident + type GetMonitorResponseTimeStatsParams struct + RangeInDays *int + type GetMonitorResponseTimeStatsPayload struct + Data []ResponseTimeStat + type GetProfileDetailsPayload struct + Data User + type HandlerError struct + func NewHandlerError(err error, slug string) *HandlerError + func NewHandlerErrorWithStatus(err error, slug string, code int) *HandlerError + func (e HandlerError) Error() string + func (e HandlerError) Slug() string + type Incident struct + Cause string + CheckedUrl string + CreatedAt time.Time + Id string + ResolvedAt *time.Time + type LogInPayload struct + Token string + type LogInRequest struct + Email string + Password string + type LoginJSONRequestBody = LogInRequest + type Monitor struct + CheckIntervalInSeconds int + CreatedAt time.Time + DownSince *time.Time + EndpointUrl string + Id string + Incidents []Incident + IsEndpointUp bool + IsPaused bool + LastCheckedAt *time.Time + UpSince *time.Time + type Port struct + func NewPort(config Config) (*Port, error) + func (p *Port) Start() error + func (p *Port) Stop(ctx context.Context) error + type ResponseTimeStat struct + Date time.Time + Region string + Value int + type ServerInterface interface + BulkInviteMembersByEmail func(ctx echo.Context) error + ConfirmInvitation func(ctx echo.Context) error + CreateAccount func(ctx echo.Context) error + CreateMonitor func(ctx echo.Context) error + DeleteMonitor func(ctx echo.Context, monitorID string) error + EditMonitor func(ctx echo.Context, monitorID string) error + GetAllIncidents func(ctx echo.Context, params GetAllIncidentsParams) error + GetAllMonitors func(ctx echo.Context, params GetAllMonitorsParams) error + GetIncidentByID func(ctx echo.Context, incidentID string) error + GetMonitorByID func(ctx echo.Context, monitorID string) error + GetMonitorResponseTimeStats func(ctx echo.Context, monitorID string, params GetMonitorResponseTimeStatsParams) error + GetProfileDetails func(ctx echo.Context) error + Login func(ctx echo.Context) error + ToggleMonitorPause func(ctx echo.Context, monitorID string) error + type ServerInterfaceWrapper struct + Handler ServerInterface + func (w *ServerInterfaceWrapper) BulkInviteMembersByEmail(ctx echo.Context) error + func (w *ServerInterfaceWrapper) ConfirmInvitation(ctx echo.Context) error + func (w *ServerInterfaceWrapper) CreateAccount(ctx echo.Context) error + func (w *ServerInterfaceWrapper) CreateMonitor(ctx echo.Context) error + func (w *ServerInterfaceWrapper) DeleteMonitor(ctx echo.Context) error + func (w *ServerInterfaceWrapper) EditMonitor(ctx echo.Context) error + func (w *ServerInterfaceWrapper) GetAllIncidents(ctx echo.Context) error + func (w *ServerInterfaceWrapper) GetAllMonitors(ctx echo.Context) error + func (w *ServerInterfaceWrapper) GetIncidentByID(ctx echo.Context) error + func (w *ServerInterfaceWrapper) GetMonitorByID(ctx echo.Context) error + func (w *ServerInterfaceWrapper) GetMonitorResponseTimeStats(ctx echo.Context) error + func (w *ServerInterfaceWrapper) GetProfileDetails(ctx echo.Context) error + func (w *ServerInterfaceWrapper) Login(ctx echo.Context) error + func (w *ServerInterfaceWrapper) ToggleMonitorPause(ctx echo.Context) error + type ToggleMonitorPauseJSONRequestBody = ToggleMonitorPauseRequest + type ToggleMonitorPauseRequest struct + Pause bool + type User struct + CreatedAt time.Time + Email string + FirstName string + Id string + LastName string + Role string