Documentation
¶
Overview ¶
Package rpc contains all the methods exposed to the rpc interface
Package rpc contains all the methods exposed to the rpc interface
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetLastEmailArgs ¶ added in v0.2.0
type GetLastEmailResult ¶ added in v0.2.0
type Postmaster ¶
type Postmaster struct{}
Postmaster is just a holder for the RPC methods
func (Postmaster) Enqueue ¶
func (Postmaster) Enqueue(r *http.Request, args *sender.Mail, reply *SuccessResult) error
Enqueue queues an email to be sent to sendgrid it accepts an instance of sender.Mail
func (Postmaster) GetLastEmail ¶ added in v0.2.0
func (Postmaster) GetLastEmail(r *http.Request, args *GetLastEmailArgs, reply *GetLastEmailResult) error
GetLastEmail gets stats for the last email sent for a specific unique ID If no records were found, {"stat": null} is returned
func (Postmaster) UpdatePrefs ¶
func (Postmaster) UpdatePrefs(r *http.Request, args *UpdatePrefsArgs, reply *SuccessResult) error
UpdatePrefs updates an email addresses email preferences
type SuccessResult ¶ added in v0.2.0
type SuccessResult struct {
Success bool `json:"success"`
}
SuccessResult holds just a Success bool and is used for methods that don't need to return anything
type UpdatePrefsArgs ¶
Click to show internal directories.
Click to hide internal directories.