Documentation
¶
Index ¶
Constants ¶
View Source
const MaxHostnames = 8
MaxHostnames is the maximum number of hostnames that can be specified for a single domain's TLS policy.
Variables ¶
This section is empty.
Functions ¶
func HandleSESNotification ¶
HandleSESNotification handles AWS SES bounces and complaints submitted to a webhook via AWS SNS (Simple Notification Service). The SNS webhook is configured to include a secret API key stored in the environment.
Types ¶
type API ¶
type API struct { Database db.Database List PolicyList DontScan map[string]bool Emailer EmailSender Templates map[string]*template.Template // contains filtered or unexported fields }
API is the HTTP API that this service provides. All requests respond with an response JSON, with fields:
{ status_code // HTTP status code of request message // Any error message accompanying the status_code. If 200, empty. response // Response data (as JSON) from this request. }
Any POST request accepts either URL query parameters or data value parameters, and prefers the latter if both are present.
func (*API) ParseTemplates ¶
ParseTemplates initializes our HTML template data
Click to show internal directories.
Click to hide internal directories.