types

package
v0.0.0-...-29ca9c5 Latest Latest
Warning

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

Go to latest
Published: May 19, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stat

type Stat struct {
	Key       string   `json:"k"`
	Value     float64  `json:"v"`
	Timestamp int64    `json:"t"`
	Type      StatKind `json:"c"`
}

func (*Stat) String

func (s *Stat) String() string

type StatKind

type StatKind int
const (
	CounterKind StatKind = iota
	ValueKind
)

func (*StatKind) MarshalJSON

func (s *StatKind) MarshalJSON() ([]byte, error)

func (*StatKind) MarshalText

func (s *StatKind) MarshalText() ([]byte, error)

func (StatKind) String

func (s StatKind) String() string

func (*StatKind) UnmarshalJSON

func (s *StatKind) UnmarshalJSON(data []byte) error

func (*StatKind) UnmarshalText

func (s *StatKind) UnmarshalText(data []byte) error

Jump to

Keyboard shortcuts

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