Documentation ¶
Index ¶
- type Account
- func (a *Account) Add(account string) (*Account, error)
- func (a *Account) Disable(accountName string) (*Account, error)
- func (a *Account) Enable(accountName string) (*Account, error)
- func (a *Account) Remove(accountName string) (*Account, error)
- func (a *Account) UnreadMail(account string) (*Account, error)
- func (a *Account) Update(accountName string, params map[string]string) (*Account, error)
- type Counters
- type DKIM
- type DNSRecord
- type DNSRecords
- type Domain
- func (d *Domain) Add(domainName string) (*Domain, error)
- func (d *Domain) Config(domainName string) (*Domain, error)
- func (d *Domain) ConnectionStatus(domainName string) (*Domain, error)
- func (d *Domain) DKIMDisable(domainName string) (*Domain, error)
- func (d *Domain) DKIMEnable(domainName string) (*Domain, error)
- func (d *Domain) DKIMStatus(domainName string) (*Domain, error)
- func (d *Domain) List(domainName string) (*Domain, error)
- func (d *Domain) Remove(domainName string) (*Domain, error)
- func (d *Domain) SetCountry(domainName string) (*Domain, error)
- type Domains
- type Secrets
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { Aliases []string `json:"aliases"` // email aliases Birthday string `json:"birth_date"` // birthday YYYY-MM-DD Counters *Counters `json:"counters"` Domain string `json:"domain"` // domain name Enabled string `json:"enabled"` // email account status Error string `json:"error"` // error code FName string `json:"fname"` // last name IName string `json:"iname"` // first name Login string `json:"login"` // email address MailList string `json:"maillist"` // email for newsletter Question string `json:"hintq"` // secret question Ready string `json:"ready"` // ready to work Sex int `json:"sex"` // 0 - not set; 1 - male; 2 - female Success string `json:"success"` // request status UID int `json:"uid"` // email id User string `json:"fio"` // full name }
Account struct
func (*Account) UnreadMail ¶
UnreadMail gets count of unread emails in account.
type DKIM ¶
type DKIM struct { Status string `json:"enabled"` // dkim connection status TxtRecord string `json:"txtrecord"` // TXT record NSReady string `json:"nsready"` // presence of the TXT record MailReady string // YandexPDD readiness to sign letters according to DKIM SecretKey string // DKIM secret key }
DKIM structure
type DNSRecord ¶
type DNSRecord struct { Content string `json:"content"` Domain string `json:"domain"` FQDN string `json:"fqdn"` RecordID int64 `json:"record_id"` Subdomain string `json:"subdomain"` TTL int `json:"ttl"` Type string `json:"type"` }
DNSRecord structure.
type DNSRecords ¶
type DNSRecords struct { Records []*DNSRecord `json:"records"` // dns records Success string `json:"success"` // request status Error string `json:"error"` // error message }
DNSRecords structure.
func (*DNSRecords) DNSRecords ¶
func (d *DNSRecords) DNSRecords(domainName string) (*DNSRecords, error)
DNSRecords gets list of dns records in domain.
type Domain ¶
type Domain struct { Accounts []*Account `json:"accounts"` // user account Aliases []string `json:"aliases"` // list of domain aliases CheckResults string `json:"check_results"` // last check result Country string `json:"country"` // interface language for mailboxes by default. Delegated string `json:"delegated"` // status of the domain name delegation on the Yandex servers DKIM DKIM Domain string `json:"domain"` // domain name EmailsCount int `json:"emails-count"` // number of available mailboxes EmailsMaxCount int `json:"emails-max-count"` // maximum number of mailboxes that can be created for the domain Error string `json:"error"` // error message ImapEnabled int `json:"imap_enabled"` // imap status LastCheck string `json:"last_check"` // date and time of last check Logo bool `json:"logo_enabled"` // presence logo LogoURL string `json:"logo_url"` // logo URL Name string `json:"name"` // domain name NextCheck string `json:"next_check"` // date and time of next check NoDKIM bool `json:"nodkim"` // a sign that DKIM is not connected NSDelegated bool `json:"nsdelegated"` // status of the domain name delegation on the Yandex servers PopEnabled int `json:"pop_enabled"` // pop status Secrets *Secrets `json:"secrets"` // Secret data test file (or CNAME records) Status string `json:"status"` // domain status Success string `json:"success"` // request status Total int `json:"total"` // total counts of user account }
Domain struct
func (*Domain) ConnectionStatus ¶
ConnectionStatus gets domain connetion status.
func (*Domain) DKIMDisable ¶
DKIMDisable for domain.
func (*Domain) DKIMEnable ¶
DKIMEnable for domain.
func (*Domain) DKIMStatus ¶
DKIMStatus gets DKIM informations.
Click to show internal directories.
Click to hide internal directories.