Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CORS ¶
func CORS(next http.HandlerFunc) http.HandlerFunc
CORS wraps a HandlerFunc to respond to OPTIONS requests properly
func Gzip ¶
func Gzip(next http.HandlerFunc) http.HandlerFunc
Gzip wraps a HandlerFunc to compress responses when possible
func Record ¶
func Record(next http.HandlerFunc) http.HandlerFunc
Record wraps a HandlerFunc to record API requests for analytical purposes
Types ¶
type Externalable ¶
type Externalable interface { // Accept allows external content submissions of a specific type Accept(http.ResponseWriter, *http.Request) error }
Externalable accepts or rejects external POST requests to endpoints such as: /api/content/external?type=Review
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package analytics provides the methods to run an analytics reporting system for API requests which may be useful to users for measuring access and possibly identifying bad actors abusing requests.
|
Package analytics provides the methods to run an analytics reporting system for API requests which may be useful to users for measuring access and possibly identifying bad actors abusing requests. |
Click to show internal directories.
Click to hide internal directories.