Documentation
¶
Index ¶
- type DomainContainer
- type MailingListContainer
- type Server
- func (ms *Server) APIKeysList() []mtypes.APIKey
- func (ms *Server) DomainIPS() []string
- func (ms *Server) DomainList() []DomainContainer
- func (ms *Server) Events() []events.Event
- func (ms *Server) ExportList() []mtypes.Export
- func (ms *Server) MailingList() []MailingListContainer
- func (ms *Server) RouteList() []mtypes.Route
- func (ms *Server) Stop()
- func (ms *Server) SubaccountList() []mtypes.Subaccount
- func (ms *Server) Templates() []mtypes.Template
- func (ms *Server) URL() string
- func (ms *Server) Unsubscribes() []mtypes.Unsubscribe
- func (ms *Server) Webhooks() mtypes.WebHooksListResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DomainContainer ¶
type DomainContainer struct { Domain mtypes.Domain `json:"domain"` ReceivingDNSRecords []mtypes.DNSRecord `json:"receiving_dns_records"` SendingDNSRecords []mtypes.DNSRecord `json:"sending_dns_records"` Connection *mtypes.DomainConnection `json:"connection,omitempty"` Tracking *mtypes.DomainTracking `json:"tracking,omitempty"` TagLimits *mtypes.TagLimits `json:"limits,omitempty"` }
type MailingListContainer ¶
type MailingListContainer struct { MailingList mtypes.MailingList Members []mtypes.Member }
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a Mailgun API mock suitable for testing
func NewServer ¶
func NewServer() *Server
NewServer creates a new instance of the mailgun API mock server
func (*Server) APIKeysList ¶ added in v5.5.0
func (*Server) DomainList ¶
func (ms *Server) DomainList() []DomainContainer
func (*Server) ExportList ¶
func (*Server) MailingList ¶
func (ms *Server) MailingList() []MailingListContainer
func (*Server) SubaccountList ¶
func (ms *Server) SubaccountList() []mtypes.Subaccount
func (*Server) Unsubscribes ¶
func (ms *Server) Unsubscribes() []mtypes.Unsubscribe
func (*Server) Webhooks ¶
func (ms *Server) Webhooks() mtypes.WebHooksListResponse
Source Files
¶
- mock.go
- mock_alerts.go
- mock_analytics.go
- mock_api_keys.go
- mock_bounces.go
- mock_complaints.go
- mock_credentials.go
- mock_domains.go
- mock_events.go
- mock_exports.go
- mock_inboxready_domains.go
- mock_ips.go
- mock_mailing_list.go
- mock_messages.go
- mock_routes.go
- mock_subaccounts.go
- mock_tags.go
- mock_template_versions.go
- mock_templates.go
- mock_unsubscribes.go
- mock_validation.go
- mock_webhooks.go
Click to show internal directories.
Click to hide internal directories.