Documentation
¶
Index ¶
- type StatsHook
- func (h *StatsHook) OnClaim(_ context.Context, batchSize int, claimed int)
- func (h *StatsHook) OnCycle(_ context.Context, d time.Duration)
- func (h *StatsHook) OnFail(_ context.Context, _ txoutbox.Envelope, _ int, _ error)
- func (h *StatsHook) OnRetry(_ context.Context, _ txoutbox.Envelope, _ int, _ time.Duration)
- func (h *StatsHook) OnSendFailure(_ context.Context, _ txoutbox.Envelope, _ error)
- func (h *StatsHook) OnSendSuccess(_ context.Context, _ txoutbox.Envelope)
- func (h *StatsHook) OnStoreError(_ context.Context, _ string, _ int64, _ error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StatsHook ¶
type StatsHook struct {
// contains filtered or unexported fields
}
StatsHook publishes basic txoutbox counters via expvar.
func NewStatsHook ¶
NewStatsHook registers an expvar entry named "<prefix>_stats".
func (*StatsHook) OnClaim ¶
OnClaim tracks how many rows we attempted to claim and how many we actually received.
func (*StatsHook) OnSendFailure ¶
OnSendFailure increments failed deliveries before retry/fail handling.
func (*StatsHook) OnSendSuccess ¶
OnSendSuccess increments successful deliveries.
Click to show internal directories.
Click to hide internal directories.