v1

package
v0.0.0-...-a0c03a0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

type Counter struct {
	Namespace string
	Name      string
	Help      string
	// contains filtered or unexported fields
}

Counter represents the options required for prometheus.Counter and reference to the created prometheus.Counter.

func (*Counter) Create

func (c *Counter) Create() error

Create a new counter.

func (*Counter) Destroy

func (c *Counter) Destroy() error

Remove counter..

func (*Counter) Incr

func (c *Counter) Incr() error

Increment the counter by 1.

type Handler

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

func NewHandler

func NewHandler() *Handler

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(rw of.ResponseWriter, r of.Request)

Jump to

Keyboard shortcuts

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