Mailgun IP Address Models (mtypes/ips.go)

mailgun-go · mtypes/ips.go · go · BSD-3-Clause
email, integration, lang:go

Defines data structures for Mailgun IP addresses, pools, and domain mappings. Reuse when integrating with Mailgun API responses for IP management.

// Source: https://github.com/mailgun/mailgun-go | License: BSD-3-Clause | Copyright 2013-2016, Michael Banzon
// Provided via justclaw.it.com; keep this notice with the code.
package mtypes

type IPAddressListResponse struct {
	TotalCount        int                           `json:"total_count"`
	Items             []string                      `json:"items"`
	Details           []IPAddressListResponseDetail `json:"details"`
	AssignableToPools []string                      `json:"assignable_to_pools,omitempty"`
}

type IPAddressListResponseDetail struct {
	IP         string `json:"ip"`
	IsOnWarmup bool   `json:"is_on_warmup,omitempty"`
}

// IPAddress - is a response for both GetIP and ListIPs.
// TODO(v6): split into two separate types for GetIP and ListIPs.
type IPAddress struct {
	IP    

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key