metrics

package
v0.0.0-...-e2fe045 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuildTime string
View Source
var GitCommit string

Functions

func NewMetrics

func NewMetrics(reg prometheus.Registerer) *metrics

func NewMetricsHandlerFunc

func NewMetricsHandlerFunc(db *database.DB) http.HandlerFunc

Types

type Entry

type Entry struct {
	ID    int    `json:"id"`
	Title string `json:"title"`
	Ags   string `json:"ags"`
}

type Provider

type Provider struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

type Request

type Request struct {
	ID        uuid.UUID `json:"id"`
	Timestamp time.Time `json:"timestamp"`
}
type Search struct {
	ID           int       `json:"id"`
	Timestamp    time.Time `json:"timestamp"`
	Professional bool      `json:"professional"`
	Ags          string    `json:"ags"`
}

type User

type User struct {
	ID       int  `json:"id"`
	Verified bool `json:"verified"`
}

Jump to

Keyboard shortcuts

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