reqlog

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package reqlog logs incoming request URL and browser fingerprints.

Index

Constants

View Source
const FingerprintExplanation = `` /* 531-byte string literal not displayed */

FingerprintExplanation provides a description of the logged HTTP headers.

Variables

This section is empty.

Functions

func IPMethodURLFingerprint added in v0.6.0

func IPMethodURLFingerprint(r *http.Request) string

IPMethodURLFingerprint extends LogReqIPAndURL by logging browser fingerprints. Attention! When fingerprinting is used to identify users, it is part of the personal data and must comply with GDPR. In that case, the website must have a legitimate reason to do so. Before enabling the fingerprinting, the user must understand it and give their freely-given informed consent such as the settings change from “no” to “yes”.

func LogIPMethodURL added in v0.6.0

func LogIPMethodURL(r *http.Request)

LogIPMethodURL logs the requester IP and the requested URL.

func LogRequests

func LogRequests(next http.Handler) http.Handler

LogRequests is the middleware to log the incoming HTTP requests.

func LogVerbose

func LogVerbose(next http.Handler) http.Handler

LogVerbose is the middleware to log the incoming HTTP requests and verbose browser fingerprints.

Types

This section is empty.

Jump to

Keyboard shortcuts

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