queps

package
v0.0.0-...-224536e Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QPSMeter

type QPSMeter struct {
	Host        string
	Port        string
	Verbose     bool
	Interval    int
	LabelNames  []string
	LabelValues []string
	MetricPath  string
	// contains filtered or unexported fields
}

func (*QPSMeter) MainRoute

func (qps *QPSMeter) MainRoute(w http.ResponseWriter, r *http.Request)

MainRoute handles QPS measuring

func (*QPSMeter) Printer

func (qps *QPSMeter) Printer()

Printer prints the QPS to stdout

func (*QPSMeter) Start

func (qps *QPSMeter) Start() error

Start starts measuring the QPS

Jump to

Keyboard shortcuts

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