Documentation ¶
Index ¶
- type AnalysisService
- type Attachment
- type Code
- type Device
- type DeviceCreateOptions
- type DeviceListResult
- type DevicesService
- type Error
- type ErrorDetail
- type ErrorResponse
- type FilesService
- type Image
- type Link
- type MailosaurClient
- func (c *MailosaurClient) HttpDelete(path string) error
- func (c *MailosaurClient) HttpGet(result interface{}, path string) (interface{}, error)
- func (c *MailosaurClient) HttpPost(result interface{}, path string, body interface{}) (interface{}, error)
- func (c *MailosaurClient) HttpPut(result interface{}, path string, body interface{}) (interface{}, error)
- type Message
- type MessageAddress
- type MessageContent
- type MessageCreateOptions
- type MessageForwardOptions
- type MessageHeader
- type MessageListParams
- type MessageListResult
- type MessageReplyOptions
- type MessageSearchParams
- type MessageSummary
- type MessagesService
- func (s *MessagesService) Create(server string, messageCreateOptions *MessageCreateOptions) (*Message, error)
- func (s *MessagesService) Delete(id string) error
- func (s *MessagesService) DeleteAll(server string) error
- func (s *MessagesService) Forward(id string, messageForwardOptions *MessageForwardOptions) (*Message, error)
- func (s *MessagesService) GeneratePreviews(id string, options *PreviewRequestOptions) (*PreviewListResult, error)
- func (s *MessagesService) Get(params *MessageSearchParams, criteria *SearchCriteria) (*Message, error)
- func (s *MessagesService) GetById(id string) (*Message, error)
- func (s *MessagesService) List(params *MessageListParams) (*MessageListResult, error)
- func (s *MessagesService) Reply(id string, messageReplyOptions *MessageReplyOptions) (*Message, error)
- func (s *MessagesService) Search(params *MessageSearchParams, criteria *SearchCriteria) (*MessageListResult, error)
- type Metadata
- type OtpResult
- type Preview
- type PreviewEmailClientListResult
- type PreviewListResult
- type PreviewPreviewEmailClient
- type PreviewRequest
- type PreviewRequestOptions
- type PreviewsService
- type SearchCriteria
- type Server
- type ServerCreateOptions
- type ServerListResult
- type ServersService
- func (s *ServersService) Create(serverCreateOptions ServerCreateOptions) (*Server, error)
- func (s *ServersService) Delete(id string) error
- func (s *ServersService) GenerateEmailAddress(id string) string
- func (s *ServersService) Get(id string) (*Server, error)
- func (s *ServersService) GetPassword(id string) (string, error)
- func (s *ServersService) List() (*ServerListResult, error)
- func (s *ServersService) Update(id string, server *Server) (*Server, error)
- type SpamAnalysisResult
- type SpamAssassinRule
- type SpamFilterResults
- type UsageAccountLimit
- type UsageAccountLimits
- type UsageService
- type UsageTransaction
- type UsageTransactionListResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnalysisService ¶
type AnalysisService struct {
// contains filtered or unexported fields
}
func (*AnalysisService) Spam ¶
func (s *AnalysisService) Spam(id string) (*SpamAnalysisResult, error)
type Attachment ¶
type DeviceCreateOptions ¶
type DeviceCreateOptions struct { Name string `json:"name"` }
type DeviceListResult ¶
type DeviceListResult struct {
Items []*Device `json:"items"`
}
type DevicesService ¶
type DevicesService struct {
// contains filtered or unexported fields
}
func (*DevicesService) Create ¶
func (s *DevicesService) Create(deviceCreateOptions DeviceCreateOptions) (*Device, error)
func (*DevicesService) Delete ¶
func (s *DevicesService) Delete(id string) error
func (*DevicesService) List ¶
func (s *DevicesService) List() (*DeviceListResult, error)
type Error ¶
type Error struct { Field string `json:"field"` Detail []ErrorDetail `json:"detail"` }
type ErrorDetail ¶
type ErrorDetail struct {
Description string `json:"description"`
}
type ErrorResponse ¶
type ErrorResponse struct {
Errors []Error `json:"errors"`
}
type FilesService ¶
type FilesService struct {
// contains filtered or unexported fields
}
func (*FilesService) GetAttachment ¶
func (s *FilesService) GetAttachment(id string) ([]byte, error)
func (*FilesService) GetPreview ¶
func (s *FilesService) GetPreview(id string) ([]byte, error)
type MailosaurClient ¶
type MailosaurClient struct { Servers *ServersService Messages *MessagesService Analysis *AnalysisService Files *FilesService Usage *UsageService Devices *DevicesService Previews *PreviewsService // contains filtered or unexported fields }
func New ¶
func New(apiKey string) *MailosaurClient
func NewWithClient ¶
func NewWithClient(apiKey string, httpClient *http.Client) *MailosaurClient
func (*MailosaurClient) HttpDelete ¶
func (c *MailosaurClient) HttpDelete(path string) error
func (*MailosaurClient) HttpGet ¶
func (c *MailosaurClient) HttpGet(result interface{}, path string) (interface{}, error)
func (*MailosaurClient) HttpPost ¶
func (c *MailosaurClient) HttpPost(result interface{}, path string, body interface{}) (interface{}, error)
func (*MailosaurClient) HttpPut ¶
func (c *MailosaurClient) HttpPut(result interface{}, path string, body interface{}) (interface{}, error)
type Message ¶
type Message struct { Id string `json:"id"` Type string `json:"type"` From []*MessageAddress `json:"from"` To []*MessageAddress `json:"to"` Cc []*MessageAddress `json:"cc"` Bcc []*MessageAddress `json:"bcc"` Received time.Time `json:"received"` Subject string `json:"subject"` Html *MessageContent `json:"html"` Text *MessageContent `json:"text"` Attachments []*Attachment `json:"attachments"` Metadata *Metadata `json:"metadata"` Server string `json:"server"` }
type MessageAddress ¶
type MessageContent ¶
type MessageCreateOptions ¶
type MessageForwardOptions ¶
type MessageHeader ¶
type MessageListParams ¶
type MessageListResult ¶
type MessageListResult struct {
Items []*MessageSummary `json:"items"`
}
type MessageReplyOptions ¶
type MessageReplyOptions struct { Text string `json:"text"` Html string `json:"html"` Attachments []Attachment `json:"attachments"` }
type MessageSearchParams ¶
type MessageSummary ¶
type MessageSummary struct { Id string `json:"id"` Type string `json:"type"` Server string `json:"server"` From []*MessageAddress `json:"from"` To []*MessageAddress `json:"to"` Cc []*MessageAddress `json:"cc"` Bcc []*MessageAddress `json:"bcc"` Received time.Time `json:"received"` Subject string `json:"subject"` Summary string `json:"summary"` Attachments int `json:"attachments"` }
type MessagesService ¶
type MessagesService struct {
// contains filtered or unexported fields
}
func (*MessagesService) Create ¶
func (s *MessagesService) Create(server string, messageCreateOptions *MessageCreateOptions) (*Message, error)
func (*MessagesService) Delete ¶
func (s *MessagesService) Delete(id string) error
func (*MessagesService) DeleteAll ¶
func (s *MessagesService) DeleteAll(server string) error
func (*MessagesService) Forward ¶
func (s *MessagesService) Forward(id string, messageForwardOptions *MessageForwardOptions) (*Message, error)
func (*MessagesService) GeneratePreviews ¶
func (s *MessagesService) GeneratePreviews(id string, options *PreviewRequestOptions) (*PreviewListResult, error)
func (*MessagesService) Get ¶
func (s *MessagesService) Get(params *MessageSearchParams, criteria *SearchCriteria) (*Message, error)
func (*MessagesService) List ¶
func (s *MessagesService) List(params *MessageListParams) (*MessageListResult, error)
func (*MessagesService) Reply ¶
func (s *MessagesService) Reply(id string, messageReplyOptions *MessageReplyOptions) (*Message, error)
func (*MessagesService) Search ¶
func (s *MessagesService) Search(params *MessageSearchParams, criteria *SearchCriteria) (*MessageListResult, error)
type Metadata ¶
type Metadata struct { Headers []*MessageHeader `json:"headers"` MailFrom string `json:"mailFrom"` RcptTo []*MessageAddress `json:"rcptTo"` Ehlo string `json:"ehlo"` }
type PreviewEmailClientListResult ¶
type PreviewEmailClientListResult struct {
Items []*PreviewPreviewEmailClient `json:"items"`
}
type PreviewListResult ¶
type PreviewListResult struct {
Items []*Preview `json:"items"`
}
type PreviewPreviewEmailClient ¶
type PreviewPreviewEmailClient struct { Id string `json:"id"` Name string `json:"name"` PlatformGroup string `json:"platformGroup"` PlatformType string `json:"platformType"` PlatformVersion string `json:"platformVersion"` CanDisableImages bool `json:"canDisableImages"` Status string `json:"status"` }
type PreviewRequest ¶
type PreviewRequestOptions ¶
type PreviewRequestOptions struct {
Previews []*PreviewRequest `json:"previews"`
}
type PreviewsService ¶
type PreviewsService struct {
// contains filtered or unexported fields
}
func (*PreviewsService) ListEmailClients ¶
func (s *PreviewsService) ListEmailClients() (*PreviewEmailClientListResult, error)
type SearchCriteria ¶
type ServerCreateOptions ¶
type ServerCreateOptions struct {
Name string `json:"name"`
}
type ServerListResult ¶
type ServerListResult struct {
Items []*Server `json:"items"`
}
type ServersService ¶
type ServersService struct {
// contains filtered or unexported fields
}
func (*ServersService) Create ¶
func (s *ServersService) Create(serverCreateOptions ServerCreateOptions) (*Server, error)
func (*ServersService) Delete ¶
func (s *ServersService) Delete(id string) error
func (*ServersService) GenerateEmailAddress ¶
func (s *ServersService) GenerateEmailAddress(id string) string
func (*ServersService) GetPassword ¶
func (s *ServersService) GetPassword(id string) (string, error)
func (*ServersService) List ¶
func (s *ServersService) List() (*ServerListResult, error)
type SpamAnalysisResult ¶
type SpamAnalysisResult struct { SpamFilterResults *SpamFilterResults `json:"spamFilterResults"` Score float64 `json:"score"` }
type SpamAssassinRule ¶
type SpamFilterResults ¶
type SpamFilterResults struct {
SpamAssassin []*SpamAssassinRule `json:"spamAssassin"`
}
type UsageAccountLimit ¶
type UsageAccountLimits ¶
type UsageAccountLimits struct { Servers *UsageAccountLimit `json:"servers"` Users *UsageAccountLimit `json:"users"` Email *UsageAccountLimit `json:"email"` Sms *UsageAccountLimit `json:"sms"` }
type UsageService ¶
type UsageService struct {
// contains filtered or unexported fields
}
func (*UsageService) Limits ¶
func (s *UsageService) Limits() (*UsageAccountLimits, error)
func (*UsageService) Transactions ¶
func (s *UsageService) Transactions() (*UsageTransactionListResult, error)
type UsageTransaction ¶
type UsageTransactionListResult ¶
type UsageTransactionListResult struct {
Items []*UsageTransaction `json:"items"`
}
Click to show internal directories.
Click to hide internal directories.