server

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const OAUTHPath = "/_oauth"

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics added in v0.4.0

type Metrics struct {
	// contains filtered or unexported fields
}

func NewMetrics added in v0.4.0

func NewMetrics(namespace, subsystem string, constLabels map[string]string, buckets ...float64) *Metrics

func (Metrics) Collect added in v0.4.0

func (m Metrics) Collect(ch chan<- prometheus.Metric)

func (Metrics) Describe added in v0.4.0

func (m Metrics) Describe(ch chan<- *prometheus.Desc)

func (Metrics) Measure added in v0.4.0

func (m Metrics) Measure(req *http.Request, statusCode int, duration time.Duration)

type Server

type Server struct {
	http.Handler
	// contains filtered or unexported fields
}

func New

func New(config configuration.Configuration, m *Metrics, l *slog.Logger) *Server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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