metrics

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BanRequest

func BanRequest()

BanRequest increments count of total requests by banned users

func BanUser

func BanUser(reason, form string)

BanUser increments counter of banned users

func Submission

func Submission(form string)

Submission increments count of total successful submissions

Types

type Handler

type Handler struct{}

Handler for metrics

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, _ *http.Request)

Jump to

Keyboard shortcuts

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