Documentation
¶
Index ¶
- func HealthCheck(c *gin.Context)
- func Status(imapService interfaces.IMAPService) gin.HandlerFunc
- type APIHandlers
- type ConfigureDomainRequest
- type DNSHandler
- type DNSRecord
- type DNSRecordResponse
- type DNSResponse
- type DomainAvailabilityResponse
- type DomainHandler
- func (h *DomainHandler) CheckAvailability() gin.HandlerFunc
- func (h *DomainHandler) ConfigureDomain() gin.HandlerFunc
- func (h *DomainHandler) GetDomains() gin.HandlerFunc
- func (h *DomainHandler) GetRecommendations() gin.HandlerFunc
- func (h *DomainHandler) PurchaseDomain() gin.HandlerFunc
- func (h *DomainHandler) RegisterNewDomain() gin.HandlerFunc
- type DomainRecord
- type DomainResponse
- type DomainsResponse
- type MailboxHandler
- type MailboxRecord
- type MailboxesResponse
- type NewMailboxRequest
- type PostmarkHandler
- type PurchaseDomainRequest
- type RegisterNewDomainRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HealthCheck ¶
HealthCheck provides a simple health check endpoint
func Status ¶
func Status(imapService interfaces.IMAPService) gin.HandlerFunc
Status returns the current status of all mailboxes
Types ¶
type APIHandlers ¶
type APIHandlers struct { Emails *emails.EmailsHandler Domains *DomainHandler DNS *DNSHandler Mailbox *MailboxHandler Postmark *PostmarkHandler }
func InitHandlers ¶
func InitHandlers(r *repository.Repositories, cfg *config.Config, s *services.Services) *APIHandlers
type ConfigureDomainRequest ¶
type DNSHandler ¶
type DNSHandler struct {
// contains filtered or unexported fields
}
func NewDNSHandler ¶
func NewDNSHandler(s *services.Services) *DNSHandler
func (*DNSHandler) AddDNSRecord ¶
func (h *DNSHandler) AddDNSRecord() gin.HandlerFunc
func (*DNSHandler) DeleteDNSRecord ¶
func (h *DNSHandler) DeleteDNSRecord() gin.HandlerFunc
func (*DNSHandler) GetDNSRecords ¶
func (h *DNSHandler) GetDNSRecords() gin.HandlerFunc
type DNSRecordResponse ¶
type DNSRecordResponse struct {
Record DNSRecord `json:"dnsRecord"`
}
type DNSResponse ¶
type DNSResponse struct {
Records []DNSRecord `json:"dnsRecords"`
}
type DomainHandler ¶
type DomainHandler struct {
// contains filtered or unexported fields
}
func NewDomainHandler ¶
func NewDomainHandler(r *repository.Repositories, cfg *config.Config, s *services.Services) *DomainHandler
func (*DomainHandler) CheckAvailability ¶
func (h *DomainHandler) CheckAvailability() gin.HandlerFunc
func (*DomainHandler) ConfigureDomain ¶
func (h *DomainHandler) ConfigureDomain() gin.HandlerFunc
func (*DomainHandler) GetDomains ¶
func (h *DomainHandler) GetDomains() gin.HandlerFunc
func (*DomainHandler) GetRecommendations ¶
func (h *DomainHandler) GetRecommendations() gin.HandlerFunc
func (*DomainHandler) PurchaseDomain ¶
func (h *DomainHandler) PurchaseDomain() gin.HandlerFunc
func (*DomainHandler) RegisterNewDomain ¶
func (h *DomainHandler) RegisterNewDomain() gin.HandlerFunc
RegisterNewDomain registers a new domain for the tenant
type DomainRecord ¶
type DomainResponse ¶
type DomainResponse struct {
Domain DomainRecord `json:"domain"`
}
type DomainsResponse ¶
type DomainsResponse struct {
Domains []DomainRecord `json:"domains"`
}
type MailboxHandler ¶
type MailboxHandler struct {
// contains filtered or unexported fields
}
func NewMailboxHandler ¶
func NewMailboxHandler(repos *repository.Repositories, cfg *config.Config, s *services.Services) *MailboxHandler
func (*MailboxHandler) ConfigureMailbox ¶
func (h *MailboxHandler) ConfigureMailbox() gin.HandlerFunc
func (*MailboxHandler) GetMailboxByEmail ¶
func (h *MailboxHandler) GetMailboxByEmail() gin.HandlerFunc
func (*MailboxHandler) GetMailboxes ¶
func (h *MailboxHandler) GetMailboxes() gin.HandlerFunc
func (*MailboxHandler) RegisterNewMailbox ¶
func (h *MailboxHandler) RegisterNewMailbox() gin.HandlerFunc
type MailboxRecord ¶
type MailboxRecord struct { ID string `json:"id,omitempty"` Email string `json:"email"` Domain string `json:"domain"` Username string `json:"username"` Password string `json:"password,omitempty"` ForwardingEnabled bool `json:"forwardingEnabled"` ForwardingTo []string `json:"forwardingTo"` WebmailEnabled bool `json:"webmailEnabled"` Provisioned bool `json:"provisioned"` RampUpCurrent int `json:"rampUpCurrent"` RampUpMax int `json:"rampUpMax"` RampUpRate int `json:"rampUpRate"` UserID string `json:"userId,omitempty"` MinMinutesBetweenEmails int `json:"minMinutesBetweenEmails"` MaxMinutesBetweenEmails int `json:"maxMinutesBetweenEmails"` }
type MailboxesResponse ¶
type MailboxesResponse struct {
Mailboxes []MailboxRecord `json:"mailboxes,omitempty"`
}
type NewMailboxRequest ¶
type NewMailboxRequest struct { Username string `json:"username"` Password string `json:"password"` Domain string `json:"domain"` ForwardingTo []string `json:"forwardingTo"` WebmailEnabled bool `json:"webmailEnabled"` UserId string `json:"userId"` IgnoreDomainOwnership bool `json:"ignoreDomainOwnership"` }
type PostmarkHandler ¶
type PostmarkHandler struct {
// contains filtered or unexported fields
}
func NewPostmarkHandler ¶
func NewPostmarkHandler(repos *repository.Repositories, svc *services.Services) *PostmarkHandler
func (*PostmarkHandler) PostmarkDMARCMonitor ¶
func (h *PostmarkHandler) PostmarkDMARCMonitor() gin.HandlerFunc
type PurchaseDomainRequest ¶
type PurchaseDomainRequest struct {
Domain string `json:"domain"`
}
Click to show internal directories.
Click to hide internal directories.