Files
plane/monitor/lib/router/handlers/errors.go
Henit Chobisa e652592b07 feat: Added DNS Validation Endpoint to Monitor as an HTTP Endpoint (#471)
* feat: added worker for executing and scheduling parallel tasks

* feat: implemented worker based execution over cron handlers

* feat: added router to package to run go fiber for dns validation

* chore: added router package to go workspace

* feat: added dns route controller

* feat: added dns validation handler for route

* feat: added healthcheck as a core function

* feat: implemented worker for scheduling and running multiple tasks over goroutines

* feat: added cron and http start handlers

* feat: added prime scheduler handler to comply with prime scheduler

* feat: implemented worker in cli start command

* feat: added tests for dns validation handler

* feat: added run test script to run test inside monitor

* feat: added test for background worker

* feat: implemented graceful shutdown for cancellation of jobs

* feat: added readme for core package

* fix: worker cancellation of tasks with ctx

* fix: added closing channels in worker

* fix: handled case for repeated keys in dns validation endpoint
2024-06-24 13:09:05 +05:30

10 lines
463 B
Go

package handlers
const (
F_EITHER_ONE_VALUE_NOT_FOUND = "either %v or %v, value not provided"
INVALID_RECORD_TYPE_PROVIDED = "invalid record type provided"
UNABLE_TO_PERFORM_DNS_VALIDATION = "unable to perform dns validation, please try again later"
F_EXPECTED_DNS_RECORD_NONE_FOUND = "expected DNS records for the provided domain %s, got none"
RECORD_TYPES_NON_EMPTY = "record types cannot be empty, pass a valid slice of record types"
)