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
Click to show internal directories.
Click to hide internal directories.