Documentation
¶
Index ¶
- func IsValidationError(err error) bool
- func SanitizeSSLThresholds(thresholds []int) []int
- func ValidateAdvancedOptions(monitorType models.MonitorType, target string, ...) error
- type MonitorUpsertInput
- type Service
- func (s *Service) Create(ctx context.Context, input MonitorUpsertInput) (models.Monitor, error)
- func (s *Service) Delete(ctx context.Context, id primitive.ObjectID) error
- func (s *Service) GetMonitorLogsPaginated(ctx context.Context, monitorID primitive.ObjectID, page, limit int) (models.PaginatedResult[models.MonitorLog], error)
- func (s *Service) History(ctx context.Context, monitorID primitive.ObjectID, limit int64) ([]models.EnhancedMonitorLog, error)
- func (s *Service) List(ctx context.Context, page, limit int) ([]models.Monitor, int64, error)
- func (s *Service) Logs(ctx context.Context, monitorID primitive.ObjectID, limit int64) ([]models.MonitorLog, error)
- func (s *Service) Outages(ctx context.Context) ([]models.Outage, error)
- func (s *Service) Update(ctx context.Context, id primitive.ObjectID, input MonitorUpsertInput) (bool, error)
- func (s *Service) Uptime(ctx context.Context, monitorID primitive.ObjectID, since time.Time) ([]models.DailyUptime, error)
- type ValidationError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidationError ¶
func SanitizeSSLThresholds ¶
func ValidateAdvancedOptions ¶
func ValidateAdvancedOptions(monitorType models.MonitorType, target string, advanced models.MonitorAdvancedOptions) error
Types ¶
type MonitorUpsertInput ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(repo repository.MonitorRepository) *Service
func (*Service) GetMonitorLogsPaginated ¶
type ValidationError ¶
type ValidationError struct {
Message string
}
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
Click to show internal directories.
Click to hide internal directories.