stathat

package
Version: 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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProtocolPackage

type ProtocolPackage struct {
	EZKey string         `json:"ezkey"`
	Data  []ProtocolStat `json:"data"`
}

func (*ProtocolPackage) MarshalJSON

func (mj *ProtocolPackage) MarshalJSON() ([]byte, error)

func (*ProtocolPackage) MarshalJSONBuf

func (mj *ProtocolPackage) MarshalJSONBuf(buf *bytes.Buffer) error

type ProtocolStat

type ProtocolStat struct {
	Stat      string   `json:"stat"`
	Value     *float64 `json:"value,omitempty"`
	Count     *int64   `json:"count,omitempty"`
	Timestamp int64    `json:"t"`
}

func (*ProtocolStat) MarshalJSON

func (mj *ProtocolStat) MarshalJSON() ([]byte, error)

func (*ProtocolStat) MarshalJSONBuf

func (mj *ProtocolStat) MarshalJSONBuf(buf *bytes.Buffer) error

type StathatWriter

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

func NewStathatWriter

func NewStathatWriter(key string) *StathatWriter

func (*StathatWriter) Write

func (sw *StathatWriter) Write(stats []*types.Stat) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL