stats

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: Apache-2.0 Imports: 10 Imported by: 2

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, addHandlers ...func(mux *http.ServeMux, profiles map[string]string))

func StartServer

func StartServer(snapshotHistory *SnapshotHistory, port uint32, addHandlers ...func(mux *http.ServeMux, profiles map[string]string)) 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