Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader interface {
// Last records for specific app with limits
LastByUID(uid string, limit int) ([]Record, error)
// Last all records
Last(limit int) ([]Record, error)
}
Reader from tracking systems. All returned records should be sorted from newest to oldest (by insertion moment)
type Record ¶
type Record struct {
UID string `json:"uid" msg:"uid,omitempty"` // app UID
Err string `json:"error,omitempty" msg:"err,omitempty"` // optional error
Request types.Request `json:"request" msg:"req,omitempty"` // incoming request
Begin time.Time `json:"begin" msg:"beg,omitempty"` // started time
End time.Time `json:"end" msg:"end,omitempty"` // ended time
}
Tracking record
func (*Record) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
Click to show internal directories.
Click to hide internal directories.