Documentation
¶
Overview ¶
Package payload contains payload structures and logic for serializing and deserializing these structures.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Counter ¶
A Counter is a metric that is to be aggregated by simple summation.
func (Counter) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type Measure ¶
A Measure is metric that is to be aggregated as a series of discrete values, by estimation of percentiles.
func (*Measure) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type Payload ¶
type Payload struct {
Counters []Counter `json:"counters" msg:"counters"`
Measures []Measure `json:"measures" msg:"measures"`
}
A Payload is the payload of a single request.
func (*Payload) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type Response ¶
type Response struct {
Code string `json:"code" msg:"code"`
Message string `json:"message" msg:"message"`
}
The Response hold the result code and message from any request.
func (Response) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
Click to show internal directories.
Click to hide internal directories.