statstest

package
v4.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2018 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 Handler

type Handler struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Handler is a stats handler that can record measures for inspection.

func (*Handler) Clear

func (h *Handler) Clear()

func (*Handler) Flush

func (h *Handler) Flush()

func (*Handler) FlushCalls

func (h *Handler) FlushCalls() int

FlushCalls returns the number of times `Flush` has been invoked.

func (*Handler) HandleMeasures

func (h *Handler) HandleMeasures(time time.Time, measures ...stats.Measure)

func (*Handler) Measures

func (h *Handler) Measures() []stats.Measure

Measures returns a copy of the handled measures.

Jump to

Keyboard shortcuts

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