Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client holds the HTTP client for interacting with the API, and the associated API key
func (*Client) SetTimeout ¶
SetTimeout configures the request timeout value (includes connecting, waiting for a response, and reading the response)
type KickboxResultBuilder ¶
type KickboxResultBuilder struct{}
KickboxResultBuilder implements our ResultBuilder interface and creates the actual Result struct (the response from Kickbox)
type Result ¶
type Result struct { Success bool `json:"success"` Result string `json:"result"` Reason string `json:"reason"` Disposable bool `json:"disposable"` Role bool `json:"role"` Free bool `json:"free"` AcceptAll bool `json:"accept_all"` Suggested string `json:"did_you_mean"` Sendex float32 `json:"sendex"` Email string `json:"email"` User string `json:"user"` Domain string `json:"domain"` Message string `json:"message"` }
Result struct we store the API response in
func (Result) IsDeliverable ¶
IsDeliverable returns true if the API returns "result: deliverable"
func (Result) IsUndeliverable ¶
IsUndeliverable returns true if the API returns "result: undeliverable"
type ResultBuilder ¶
ResultBuilder defines our interface for creating Result objects
Click to show internal directories.
Click to hide internal directories.