Documentation ¶
Overview ¶
Package logs contains handlers and logic for the /logs and /logs/newcount API endpoints.
Index ¶
Constants ¶
View Source
const ( // For the 'limit' parameter. DefaultLogLimit = 1000 // For the 'limit' parameter when 'days' is given and 'limit' is not. DefaultLogLimitForDays = 1000000 // For the 'days' parameter. DefaultLogDays = 30 )
These are the default values for query string parameters if not provided.
View Source
const LastSeenLogCookieName = "last_seen_log"
LastSeenLogCookieName is the name of the HTTP cookie that stores the date/time at which the client last requested logs, so that unread logs can be returned to them on request.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
func Get(w http.ResponseWriter, r *http.Request)
Get is the handler for GET requests to /logs.
func GetNewCount ¶
func GetNewCount(w http.ResponseWriter, r *http.Request)
GetNewCount is the handler for GET requests to /logs/newcount.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.