stats

package
v0.12.6 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMetrics

func AddMetrics(mux *http.ServeMux)

func AddPprof

func AddPprof(mux *http.ServeMux)

func AddSnapshots

func AddSnapshots(mux *http.ServeMux, history *SnapshotHistory)

func Index

func Index(w http.ResponseWriter, r *http.Request)

func MustStartServerBackground

func MustStartServerBackground(snapshotHistory *SnapshotHistory, port uint32)

func StartServer

func StartServer(snapshotHistory *SnapshotHistory, port uint32) error

Types

type SnapshotHistory

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

func NewSnapshotHistory

func NewSnapshotHistory() *SnapshotHistory

func (*SnapshotHistory) GetInput

func (h *SnapshotHistory) GetInput() ([]byte, error)

func (*SnapshotHistory) GetOutput

func (h *SnapshotHistory) GetOutput() ([]byte, error)

func (*SnapshotHistory) SetInput

func (h *SnapshotHistory) SetInput(latestInput json.Marshaler)

func (*SnapshotHistory) SetOutput

func (h *SnapshotHistory) SetOutput(latestOutput json.Marshaler)

Jump to

Keyboard shortcuts

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