activitylog

package
v0.0.0-...-1518e3e Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package activitylog handles the logging of user actions performed within the app for diagnostic and auditing purposes. The activity log records each page view and each api endpoint hit. The request data is saved but the response data is not (because we would need to write our own http response writer interface). Activity logging also works for public api calls.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

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

Clear handles deleting rows from the activity log table. This is usually only done from the admin tools page to reduce the table size. The user provides a date up to which rows are deleted. The activity log table can get very large very fast so clearing old stuff from time to time can be helpful.

Types

This section is empty.

Jump to

Keyboard shortcuts

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