mocks

package
v5.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2025 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

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 (ms *Server) APIKeysList() []mtypes.APIKey

func (*Server) DomainIPS

func (ms *Server) DomainIPS() []string

func (*Server) DomainList

func (ms *Server) DomainList() []DomainContainer

func (*Server) Events

func (ms *Server) Events() []events.Event

func (*Server) ExportList

func (ms *Server) ExportList() []mtypes.Export

func (*Server) MailingList

func (ms *Server) MailingList() []MailingListContainer

func (*Server) RouteList

func (ms *Server) RouteList() []mtypes.Route

func (*Server) Stop

func (ms *Server) Stop()

Stop the server

func (*Server) SubaccountList

func (ms *Server) SubaccountList() []mtypes.Subaccount

func (*Server) Templates

func (ms *Server) Templates() []mtypes.Template

func (*Server) URL

func (ms *Server) URL() string

func (*Server) Unsubscribes

func (ms *Server) Unsubscribes() []mtypes.Unsubscribe

func (*Server) Webhooks

func (ms *Server) Webhooks() mtypes.WebHooksListResponse

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL