expvar

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Expvar

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

Expvar provides our basic publishing.

func New

func New(log *log.Logger, host string, route string, readTimeout, writeTimeout time.Duration) *Expvar

New starts a service for consuming the raw expvar stats.

func (*Expvar) Publish

func (exp *Expvar) Publish(data map[string]interface{})

Publish is called by the publisher goroutine and saves the raw stats.

func (*Expvar) Stop

func (exp *Expvar) Stop(shutdownTimeout time.Duration)

Stop shuts down the service.

Jump to

Keyboard shortcuts

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