logs

package
v6.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 10 Imported by: 0

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.

func Getv40

func Getv40(w http.ResponseWriter, r *http.Request)

Get is the handler for GET requests to /logs V4.0.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL