Help us shape the future of Go! Take the 2026 Go Developer Survey

metricsserver

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is a lightweight HTTP metrics server that tracks per-viewer stats.

func New

func New(port int) *Server

New creates a Server that will listen on the given port.

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(ctx context.Context) error

ListenAndServe starts the HTTP server and blocks until ctx is cancelled.

func (*Server) Subscriber

func (s *Server) Subscriber() func(vp9_stats.Period, vp9_stats.VideoQualitySample)

Subscriber returns a func compatible with vp9_stats.Publisher.AddSubscriber.

Jump to

Keyboard shortcuts

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