merged from gramsrv upstream
This commit is contained in:
parent
79c64ee916
commit
21a0856587
651 changed files with 54774 additions and 4590 deletions
|
|
@ -9,6 +9,11 @@ type Metrics interface {
|
|||
OutboxClaimed(count int)
|
||||
OutboxDelivered(d time.Duration)
|
||||
OutboxFailed(err error)
|
||||
PresenceLastSeenBatch(count int, d time.Duration, err error)
|
||||
PresenceLastSeenSubmitted()
|
||||
PresenceLastSeenPending(delta int)
|
||||
PresenceLastSeenOverflow()
|
||||
PresenceLastSeenDrainDropped(count int)
|
||||
}
|
||||
|
||||
// NopMetrics 是 Metrics 的空实现。
|
||||
|
|
@ -23,3 +28,13 @@ func (NopMetrics) OutboxClaimed(int) {}
|
|||
func (NopMetrics) OutboxDelivered(time.Duration) {}
|
||||
|
||||
func (NopMetrics) OutboxFailed(error) {}
|
||||
|
||||
func (NopMetrics) PresenceLastSeenBatch(int, time.Duration, error) {}
|
||||
|
||||
func (NopMetrics) PresenceLastSeenSubmitted() {}
|
||||
|
||||
func (NopMetrics) PresenceLastSeenPending(int) {}
|
||||
|
||||
func (NopMetrics) PresenceLastSeenOverflow() {}
|
||||
|
||||
func (NopMetrics) PresenceLastSeenDrainDropped(int) {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue