Versions in this module Expand all Collapse all v1 v1.0.0 Sep 20, 2021 Changes in this version + const BaseURLv3 + const Delievered + const HardBounce + const Queued + const Refused + const SoftBounce + type Account struct + BillingEmail string + CancelsOn Time + CardBrand string + CompanyDetails string + CompanyName string + CompanyVAT string + Country string + CreatedAt Time + Email string + Last4 string + Limits struct{ ... } + LockReason string + Locked bool + Password bool + Plan *AccountPlan + Premium bool + PrivacyLevel int64 + RenewDate Time + type AccountEndpoint doze.Client + func (endpoint *AccountEndpoint) Labels(ctx context.Context) ([]Whitelabel, error) + func (endpoint *AccountEndpoint) Read(ctx context.Context) (*Account, error) + type AccountPlan struct + AliasesLimit int64 + DailyQuota int64 + DomainsLimit int64 + Kind string + Name string + Price int64 + Yearly bool + type Alias struct + Address string + ID int64 + Name string + type AliasEndpoint doze.Client + func (endpoint *AliasEndpoint) Create(ctx context.Context, domain, alias, address string) (*Alias, error) + func (endpoint *AliasEndpoint) Delete(ctx context.Context, domain, alias string) error + func (endpoint *AliasEndpoint) List(ctx context.Context, domain string, options ...*ListOption) ([]Alias, error) + func (endpoint *AliasEndpoint) Logs(ctx context.Context, domain, alias string) ([]LogEntry, error) + func (endpoint *AliasEndpoint) Read(ctx context.Context, domain, alias string) (*Alias, error) + func (endpoint *AliasEndpoint) Update(ctx context.Context, domain, alias, address string) (*Alias, error) + type Contact struct + Email string + Name string + type Credential struct + CreatedAt Time + Usage int64 + Username string + type CredentialEndpoint doze.Client + func (endpoint *CredentialEndpoint) Create(ctx context.Context, domain string, user User) (*Credential, error) + func (endpoint *CredentialEndpoint) Delete(ctx context.Context, domain, username string) error + func (endpoint *CredentialEndpoint) List(ctx context.Context, domain string) ([]Credential, error) + func (endpoint *CredentialEndpoint) Update(ctx context.Context, domain string, user User) (*Credential, error) + type Domain struct + Active bool + Added Time + Aliases []Alias + DKIMSelector string + Display string + Name string + NotificationEmail string + Whitelabel string + type DomainEndpoint doze.Client + func (endpoint *DomainEndpoint) Create(ctx context.Context, domain string, options ...DomainOption) (*Domain, error) + func (endpoint *DomainEndpoint) Delete(ctx context.Context, domain string) error + func (endpoint *DomainEndpoint) List(ctx context.Context, options ...*ListOption) ([]Domain, error) + func (endpoint *DomainEndpoint) Logs(ctx context.Context, domain string) ([]LogEntry, error) + func (endpoint *DomainEndpoint) Read(ctx context.Context, domain string) (*Domain, error) + func (endpoint *DomainEndpoint) Update(ctx context.Context, domain string, options ...DomainOption) (*Domain, error) + func (endpoint *DomainEndpoint) Verify(ctx context.Context, domain string) error + type DomainOption struct + Email string + Label string + type DomainRecord struct + type Error struct + Code int + Message string + func (e *Error) Error() string + type ListOption struct + func NewListOption() *ListOption + func (option *ListOption) ClearIsActive() *ListOption + func (option *ListOption) ClearLimit() *ListOption + func (option *ListOption) ClearPage() *ListOption + func (option *ListOption) ClearStartsWith() *ListOption + func (option *ListOption) SetIsActive(value bool) *ListOption + func (option *ListOption) SetLimit(value int) *ListOption + func (option *ListOption) SetPage(value int) *ListOption + func (option *ListOption) SetStartsWith(value string) *ListOption + type LogEntry struct + Address Contact + CreatedAt string + CreatedRaw string + Events []LogEvent + Hostname string + ID string + MessageID string + Recipient Contact + Sender Contact + Subject string + Transport string + type LogEvent struct + Code int64 + CreatedAt string + ID string + Local string + Message string + Server string + Status MessageStatus + type MessageStatus string + type Session struct + Account *AccountEndpoint + Aliases *AliasEndpoint + Credentials *CredentialEndpoint + Domains *DomainEndpoint + func New(token string, options ...SessionOption) (*Session, error) + type SessionOption func(*Session) error + func WithBaseURL(url string) SessionOption + func WithClient(client *doze.Client) SessionOption + func WithDebug() SessionOption + func WithUserAgent(agent string) SessionOption + type Time = doze.Time + type User struct + Password string + Username string + type Whitelabel struct + Name string