expvar

package
v0.0.0-...-fab57c2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package expvar provides a mockable wrapper for expvar.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct{}

func (*Impl) Do

func (*Impl) Do(f func(expvar.KeyValue))

func (*Impl) Get

func (*Impl) Get(name string) expvar.Var

func (*Impl) Handler

func (*Impl) Handler() http.Handler

func (*Impl) NewFloat

func (*Impl) NewFloat(name string) *expvar.Float

func (*Impl) NewInt

func (*Impl) NewInt(name string) *expvar.Int

func (*Impl) NewMap

func (*Impl) NewMap(name string) *expvar.Map

func (*Impl) NewString

func (*Impl) NewString(name string) *expvar.String

func (*Impl) Publish

func (*Impl) Publish(name string, v expvar.Var)

type Interface

type Interface interface {
	Do(f func(expvar.KeyValue))
	Get(name string) expvar.Var
	Handler() http.Handler
	NewFloat(name string) *expvar.Float
	NewInt(name string) *expvar.Int
	NewMap(name string) *expvar.Map
	NewString(name string) *expvar.String
	Publish(name string, v expvar.Var)
}

Jump to

Keyboard shortcuts

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