Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var (
ErrEmailAlreadySent = errorRegistry.MustAddMessageError(1000, "Email Already Sent")
)
Errors that are returned from the HTTP server.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.5.2
type Client struct {
*apiClient.Client
}
Client implements gopherpit.com/gopherpit/services/notification.Service interface.
func NewClient ¶ added in v0.5.2
func NewClient(c *apiClient.Client) *Client
NewClient creates a new Client.
func (Client) IsEmailOptedOut ¶ added in v0.5.2
IsEmailOptedOut returns true or false if e-mail address is marked not to send any e-mail messages to. Expected response body is a JSON-encoded instance of IsEmailOptedOutResponse.
func (Client) OptOutEmail ¶ added in v0.5.2
OptOutEmail marks an e-mail address not to send any e-mail messages to.
func (Client) RemoveOptedOutEmail ¶ added in v0.5.2
RemoveOptedOutEmail removes an opt-out mark previosulu set by OptOutEmail.
type IsEmailOptedOutResponse ¶
type IsEmailOptedOutResponse struct {
Yes bool `json:"yes"`
}
IsEmailOptedOutResponse is expected structure of JSON-encoded response body for IsEmailOptedOut HTTP request.
type SendEmailResponse ¶
type SendEmailResponse struct {
ID string `json:"id"`
}
SendEmailResponse is expected structure of JSON-encoded response body for SendEmail HTTP request.