stats

package
v0.0.0-...-b800c40 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoolVal

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

func (*BoolVal) Init

func (v *BoolVal) Init()

func (BoolVal) MarshalJSON

func (v BoolVal) MarshalJSON() ([]byte, error)

func (*BoolVal) Set

func (v *BoolVal) Set(nv bool)

func (BoolVal) Value

func (v BoolVal) Value() bool

type Histogram

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

func (*Histogram) Add

func (h *Histogram) Add(val int64)

func (*Histogram) Init

func (h *Histogram) Init(buckets []int64, humanizeFn func(int64) string)

func (Histogram) MarshalJSON

func (h Histogram) MarshalJSON() ([]byte, error)

func (Histogram) String

func (h Histogram) String() string

type Int64Val

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

func (*Int64Val) Add

func (v *Int64Val) Add(delta int64)

func (*Int64Val) Init

func (v *Int64Val) Init()

func (Int64Val) MarshalJSON

func (v Int64Val) MarshalJSON() ([]byte, error)

func (*Int64Val) Set

func (v *Int64Val) Set(nv int64)

func (Int64Val) Value

func (v Int64Val) Value() int64

type TimeVal

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

func (*TimeVal) Init

func (v *TimeVal) Init()

func (TimeVal) MarshalJSON

func (v TimeVal) MarshalJSON() ([]byte, error)

func (*TimeVal) Set

func (v *TimeVal) Set(nv int64)

func (TimeVal) Value

func (v TimeVal) Value() string

type TimingStat

type TimingStat struct {
	Count   Int64Val
	Sum     Int64Val
	SumOfSq Int64Val
}

func (*TimingStat) Init

func (t *TimingStat) Init()

func (*TimingStat) Put

func (t *TimingStat) Put(dur time.Duration)

func (TimingStat) Value

func (t TimingStat) Value() string

Jump to

Keyboard shortcuts

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