Documentation ¶
Index ¶
- type RequestMetrics
- func (resp *RequestMetrics) Metrics() (time.Duration, uint64, uint64)
- func (resp *RequestMetrics) Reset()
- func (resp *RequestMetrics) Update(sentTS, receivedTS time.Time, sentData, receivedData int64) error
- func (resp *RequestMetrics) UpdateReceived(receivedTS time.Time, receivedData int64) error
- func (resp *RequestMetrics) UpdateSent(sentTS time.Time, sentData int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestMetrics ¶
type RequestMetrics struct {
// contains filtered or unexported fields
}
RequestMetrics keep count on data sent and received. First sent and last received message time
func (*RequestMetrics) Metrics ¶
func (resp *RequestMetrics) Metrics() (time.Duration, uint64, uint64)
Metrics get action metrics
func (*RequestMetrics) Update ¶
func (resp *RequestMetrics) Update(sentTS, receivedTS time.Time, sentData, receivedData int64) error
Update action metrics with more data
func (*RequestMetrics) UpdateReceived ¶
func (resp *RequestMetrics) UpdateReceived(receivedTS time.Time, receivedData int64) error
UpdateReceived metrics
func (*RequestMetrics) UpdateSent ¶
func (resp *RequestMetrics) UpdateSent(sentTS time.Time, sentData int64) error
UpdateSent metrics
Click to show internal directories.
Click to hide internal directories.