Versions in this module Expand all Collapse all v0 v0.1.0 Oct 20, 2023 Changes in this version + type Account struct + AccessLevels []int + ID int + Name string + type AccountUser struct + ID int + Permissions Permissions + Resources []AccountUserResources + Specifier AccountUserSpecifier + SpecifierType string + type AccountUserResources struct + AccessLevel int + ResourceID int + ResourceType string + type AccountUserSpecifier struct + Email string + ID int + Name string + type AccountUsersService struct + func (s *AccountUsersService) Delete(accountID, accountAccessID int) (*Response, error) + func (s *AccountUsersService) List(accountID int, params *ListAccountUsersParams) ([]*AccountUser, *Response, error) + type AccountUsersServiceContract interface + Delete func(accountID, accountAccessID int) (*Response, error) + List func(accountID int, params *ListAccountUsersParams) ([]*AccountUser, *Response, error) + type AccountsService struct + func (s *AccountsService) List() ([]*Account, *Response, error) + type AccountsServiceContract interface + List func() ([]*Account, *Response, error) + type Attachment struct + AttachmentHumanSize string + AttachmentSize int + AttachmentType string + ContentID string + ContentType string + CreatedAt string + DownloadPath string + Filename string + ID int + MessageID int + TransferEncoding string + UpdatedAt string + type AttachmentsService struct + func (s *AttachmentsService) Get(accountID, inboxID, messageID, attachmentID int) (*Attachment, *Response, error) + func (s *AttachmentsService) List(accountID, inboxID, messageID int) ([]*Attachment, *Response, error) + type AttachmentsServiceContract interface + Get func(accountID, inboxID, messageID, attachmentID int) (*Attachment, *Response, error) + List func(accountID, inboxID, messageID int) ([]*Attachment, *Response, error) + type EmailAddress struct + Email string + Name string + type EmailAttachment struct + AttachType string + Content string + ContentID string + Disposition string + Filename string + type ErrorResponse struct + Errors []string + Message string + Response *http.Response + func (r *ErrorResponse) Error() string + type Event struct + Category string + CustomVariables map[string]string + Email string + Event string + EventID string + IP string + MessageID string + Reason string + Response string + ResponseCode int + Timestamp int + URL string + UserAgent string + type Events struct + Events []Event + func DecodeWebhook(r io.Reader) (*Events, error) + type Inbox struct + Domain string + EmailDomain string + EmailUsername string + EmailUsernameEnabled bool + EmailsCount int + EmailsUnreadCount int + ForwardFromEmailAddress string + ForwardedMessagesCount int + ID int + LastMessageSentAt string + MaxMessageSize int + MaxSize int + Name string + POP3Domain string + POP3Ports []int + Password string + Permissions Permissions + ProjectID int + SMTPPorts []int + SentMessagesCount int + Status string + Used bool + Username string + type InboxesService struct + func (s *InboxesService) Clean(accountID, inboxID int) (*Inbox, *Response, error) + func (s *InboxesService) Create(accountID, inboxID int, name string) (*Inbox, *Response, error) + func (s *InboxesService) Delete(accountID, inboxID int) (*Response, error) + func (s *InboxesService) EnableEmail(accountID, inboxID int) (*Inbox, *Response, error) + func (s *InboxesService) Get(accountID, inboxID int) (*Inbox, *Response, error) + func (s *InboxesService) List(accountID int) ([]*Inbox, *Response, error) + func (s *InboxesService) MarkAsRead(accountID, inboxID int) (*Inbox, *Response, error) + func (s *InboxesService) ResetCredentials(accountID, inboxID int) (*Inbox, *Response, error) + func (s *InboxesService) ResetEmail(accountID, inboxID int) (*Inbox, *Response, error) + func (s *InboxesService) Update(accountID, inboxID int, updateReq *UpdateInboxRequest) (*Inbox, *Response, error) + type InboxesServiceContract interface + Clean func(accountID, inboxID int) (*Inbox, *Response, error) + Create func(accountID, inboxID int, name string) (*Inbox, *Response, error) + Delete func(accountID, inboxID int) (*Response, error) + EnableEmail func(accountID, inboxID int) (*Inbox, *Response, error) + Get func(accountID, inboxID int) (*Inbox, *Response, error) + List func(accountID int) ([]*Inbox, *Response, error) + MarkAsRead func(accountID, inboxID int) (*Inbox, *Response, error) + ResetCredentials func(accountID, inboxID int) (*Inbox, *Response, error) + ResetEmail func(accountID, inboxID int) (*Inbox, *Response, error) + Update func(accountID, inboxID int, updRequest *UpdateInboxRequest) (*Inbox, *Response, error) + type ListAccountUsersParams struct + InboxIDs *[]string + ProjectIDs *[]int + type Message struct + BlacklistsReportInfo bool + CreatedAt time.Time + DownloadPath string + EmailSize int + FromEmail string + FromName string + HTMLBodySize int + HTMLPath string + HTMLSourcePath string + HumanSize string + ID int + InboxID int + IsRead bool + RawPath string + SMTPInfo *MessageSMTPInfo + SentAt time.Time + Subject string + TextBodySize int + ToEmail string + ToName string + TxtPath string + UpdatedAt time.Time + type MessageSMTPInfo struct + Data struct{ ... } + Ok bool + type MessagesService struct + func (s *MessagesService) AsEML(accountID, inboxID, messageID int) (string, *Response, error) + func (s *MessagesService) AsHTML(accountID, inboxID, messageID int) (string, *Response, error) + func (s *MessagesService) AsHTMLSource(accountID, inboxID, messageID int) (string, *Response, error) + func (s *MessagesService) AsRaw(accountID, inboxID, messageID int) (string, *Response, error) + func (s *MessagesService) AsText(accountID, inboxID, messageID int) (string, *Response, error) + func (s *MessagesService) Delete(accountID, inboxID, messageID int) (*Response, error) + func (s *MessagesService) Forward(accountID, inboxID, messageID int, email string) (*Response, error) + func (s *MessagesService) Get(accountID, inboxID, messageID int) (*Message, *Response, error) + func (s *MessagesService) List(accountID, inboxID int) ([]*Message, *Response, error) + func (s *MessagesService) SpamReport(accountID, inboxID, messageID int) (*SpamReport, *Response, error) + func (s *MessagesService) Update(accountID, inboxID, messageID int, updateReq *UpdateMessageRequest) (*Message, *Response, error) + type MessagesServiceContract interface + AsEML func(accountID, inboxID, messageID int) (string, *Response, error) + AsHTML func(accountID, inboxID, messageID int) (string, *Response, error) + AsHTMLSource func(accountID, inboxID, messageID int) (string, *Response, error) + AsRaw func(accountID, inboxID, messageID int) (string, *Response, error) + AsText func(accountID, inboxID, messageID int) (string, *Response, error) + Delete func(accountID, inboxID, messageID int) (*Response, error) + Forward func(accountID, inboxID, messageID int, email string) (*Response, error) + Get func(accountID, inboxID, messageID int) (*Message, *Response, error) + List func(accountID, inboxID int) ([]*Message, *Response, error) + SpamReport func(accountID, inboxID, messageID int) (*SpamReport, *Response, error) + Update func(accountID, inboxID, messageID int, updateReq *UpdateMessageRequest) (*Message, *Response, error) + type PermissionRequest struct + AccessLevel string + Destroy bool + ResourceID int + ResourceType string + type Permissions struct + CanDestroy bool + CanLeave bool + CanRead bool + CanUpdate bool + type PermissionsService struct + func (s *PermissionsService) ListResources(accountID int) ([]*Resource, *Response, error) + func (s *PermissionsService) Manage(accountID, accountAccessID int, permissionReq *[]PermissionRequest) (*Response, error) + type PermissionsServiceContract interface + ListResources func(accountID int) ([]*Resource, *Response, error) + Manage func(accountID, accountAccessID int, permissionReq *[]PermissionRequest) (*Response, error) + type Project struct + ID int + Inboxes []Inbox + Name string + Permissions Permissions + ShareLinks struct{ ... } + type ProjectsService struct + func (s *ProjectsService) Create(accountID int, name string) (*Project, *Response, error) + func (s *ProjectsService) Delete(accountID, projectID int) (*Response, error) + func (s *ProjectsService) Get(accountID, projectID int) (*Project, *Response, error) + func (s *ProjectsService) List(accountID int) ([]*Project, *Response, error) + func (s *ProjectsService) Update(accountID, projectID int, name string) (*Project, *Response, error) + type ProjectsServiceContract interface + Create func(accountID int, name string) (*Project, *Response, error) + Delete func(accountID, projectID int) (*Response, error) + Get func(accountID, projectID int) (*Project, *Response, error) + List func(accountID int) ([]*Project, *Response, error) + Update func(accountID, projectID int, name string) (*Project, *Response, error) + type Resource struct + AccessLevel int + ID int + Name string + Resource []*Resource + Type string + type Response struct + type SendEmailRequest struct + Attachments []EmailAttachment + Bcc []EmailAddress + Category string + Cc []EmailAddress + CustomVars map[string]string + From EmailAddress + HTML string + Headers map[string]string + Subject string + Text string + To []EmailAddress + type SendEmailResponse struct + MessageIDs []string + Success bool + type SendingClient struct + func NewSendingClient(host, apiKey string) (*SendingClient, error) + func (c *SendingClient) Do(req *http.Request, v interface{}) (*Response, error) + func (c *SendingClient) NewRequest(method, path string, body interface{}) (*http.Request, error) + func (sc *SendingClient) Send(request *SendEmailRequest) (*SendEmailResponse, *Response, error) + type SpamReport struct + Report struct{ ... } + type TestingClient struct + AccountUsers *AccountUsersService + Accounts *AccountsService + Attachments *AttachmentsService + Inboxes *InboxesService + Messages *MessagesService + Permissions *PermissionsService + Projects *ProjectsService + func NewTestingClient(apiKey string) (*TestingClient, error) + func (c *TestingClient) Do(req *http.Request, v interface{}) (*Response, error) + func (c *TestingClient) NewRequest(method, path string, body interface{}) (*http.Request, error) + type UpdateInboxRequest struct + EmailUsername string + Name string + type UpdateMessageRequest struct + IsRead bool