aboutsummaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
Diffstat (limited to 'services')
-rw-r--r--services/dashboard/overview.go18
-rw-r--r--services/domain/domain.go2
-rw-r--r--services/domain/messages.go4
3 files changed, 12 insertions, 12 deletions
diff --git a/services/dashboard/overview.go b/services/dashboard/overview.go
index e073bf8..5aa4b72 100644
--- a/services/dashboard/overview.go
+++ b/services/dashboard/overview.go
@@ -107,16 +107,16 @@ type DnsCard struct {
}
type OverviewResponse struct {
- BindAddress string `json:"bind_address"`
- DnsAddress string `json:"dns_address"`
- Services []ServiceStatus `json:"services"`
- Email EmailCard `json:"email"`
- Domains DomainsCard `json:"domains"`
- ReverseProxy ReverseProxyCard `json:"reverse_proxy"`
+ BindAddress string `json:"bind_address"`
+ DnsAddress string `json:"dns_address"`
+ Services []ServiceStatus `json:"services"`
+ Email EmailCard `json:"email"`
+ Domains DomainsCard `json:"domains"`
+ ReverseProxy ReverseProxyCard `json:"reverse_proxy"`
Storage ObjectStorageCard `json:"storage"`
- CronJobs CronJobsCard `json:"cron_jobs"`
- Dove DoveCard `json:"dove"`
- Dns DnsCard `json:"dns"`
+ CronJobs CronJobsCard `json:"cron_jobs"`
+ Dove DoveCard `json:"dove"`
+ Dns DnsCard `json:"dns"`
}
func Overview() OverviewResponse {
diff --git a/services/domain/domain.go b/services/domain/domain.go
index 91ca1e9..4047ec0 100644
--- a/services/domain/domain.go
+++ b/services/domain/domain.go
@@ -162,4 +162,4 @@ func deleteAllDNSRecords(domainID uint) {
dnsRepo.DeleteMXRecordsByDomainID(domainID)
dnsRepo.DeleteTXTRecordsByDomainID(domainID)
dnsRepo.DeleteSRVRecordsByDomainID(domainID)
-} \ No newline at end of file
+}
diff --git a/services/domain/messages.go b/services/domain/messages.go
index e8b0ae3..c279511 100644
--- a/services/domain/messages.go
+++ b/services/domain/messages.go
@@ -7,8 +7,8 @@ const (
DomainHasMailboxes = "Cannot delete a domain that has mailboxes. Remove all mailboxes first."
DomainNameInvalid = "Domain name must contain only lowercase letters, numbers, and hyphens."
DomainNameRequired = "Domain name is required."
- DomainNotFound = "Domain not found."
- DomainTLDRequired = "A TLD must be selected for the domain."
+ DomainNotFound = "Domain not found."
+ DomainTLDRequired = "A TLD must be selected for the domain."
TLDAlreadyExists = "A TLD with this name already exists."
TLDCreationFailed = "Failed to create TLD."
TLDDeletionFailed = "Failed to delete TLD."