Documentation ¶
Index ¶
- type Client
- func (client *Client) AccountDetails() Response
- func (client *Client) CreateDomain(domain, notificationEmail, whitelabel string) Response
- func (client *Client) CreateEmailForward(domain, alias, forward string) Response
- func (client *Client) CreateSMTPCredential(domain, username, password string) Response
- func (client *Client) DeleteDomain(domain string) Response
- func (client *Client) DeleteEmailForward(domain, alias string) Response
- func (client *Client) DeleteSMTPCredential(domain, username string) Response
- func (client *Client) GetDomain(domain string) Response
- func (client *Client) GetDomainCheck(domain string) Response
- func (client *Client) GetEmailForward(domain, alias string) Response
- func (client *Client) GetSMTPCredential(domain string) Response
- func (client *Client) UpdateDomain(domain, notificationEmail, whitelabel string) Response
- func (client *Client) UpdateEmailForward(domain, alias, forward string) Response
- func (client *Client) UpdateSMTPCredential(domain, username, password string) Response
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) AccountDetails ¶
func (*Client) CreateDomain ¶
func (*Client) CreateEmailForward ¶
func (*Client) CreateSMTPCredential ¶
func (*Client) DeleteDomain ¶
func (*Client) DeleteEmailForward ¶
func (*Client) DeleteSMTPCredential ¶
func (*Client) GetDomainCheck ¶
func (*Client) GetEmailForward ¶
func (*Client) GetSMTPCredential ¶
func (*Client) UpdateDomain ¶
func (*Client) UpdateEmailForward ¶
func (*Client) UpdateSMTPCredential ¶
type Response ¶
type Response struct { Success bool `json:"success"` Total int `json:"total"` Code int `json:"code"` Errors struct { Domain []string `json:"domain"` Alias []string `json:"alias"` Account []string `json:"account"` } `json:"errors"` Error string `json:"error"` Records struct { Valid bool `json:"valid"` Provider string `json:"provider"` Advanced bool `json:"advanced"` Mx struct { Valid bool `json:"valid"` Expected []string `json:"expected"` Values []string `json:"values"` } `json:"mx"` Spf struct { Valid bool `json:"valid"` Expected string `json:"expected"` Values string `json:"values"` } `json:"spf"` } Account struct { Plan struct { Display string `json:"display"` } `json:"plan"` } `json:"account"` Alias struct { Forward string `json:"forward"` Alias string `json:"alias"` Id int64 `json:"id"` } `json:"alias"` Domain struct { Domain string `json:"domain"` Whitelabel string `json:"whitelabel"` NotificationEmail string `json:"notification_email"` Aliases []struct { Id int64 `json:"id"` } } `json:"domain"` Credential struct { Created int64 `json:"created"` Usage int `json:"usage"` Username string `json:"username"` } `json:"credential"` Credentials []struct { Created int64 `json:"created"` Usage int `json:"usage"` Username string `json:"username"` } `json:"credentials"` }
Click to show internal directories.
Click to hide internal directories.