noop

package
v0.0.0-...-37fced7 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: MIT Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	ReqCounter    uint64
	SampleCounter uint64
	// contains filtered or unexported fields
}

func NewAdapter

func NewAdapter(port int) *Adapter

func (*Adapter) Handler

func (adapter *Adapter) Handler(rw http.ResponseWriter, req *http.Request)

Handler counts number of requests and samples

func (*Adapter) Start

func (adapter *Adapter) Start() error

Start starts no-op Prometheus adapter. This call will block go-routine

Jump to

Keyboard shortcuts

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