Documentation ¶
Index ¶
- type StatInterceptor
- type Stats
- func (s *Stats) AvgLatency() time.Duration
- func (s *Stats) Delivered(tx *trantorpb.Transaction)
- func (s *Stats) DeliveredTransactions() int
- func (s *Stats) NewTX(tx *trantorpb.Transaction)
- func (s *Stats) Reset()
- func (s *Stats) WriteCSVHeader(w *csv.Writer)
- func (s *Stats) WriteCSVRecord(w *csv.Writer, d time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StatInterceptor ¶
type StatInterceptor struct { *Stats // contains filtered or unexported fields }
func NewStatInterceptor ¶
func NewStatInterceptor(s *Stats, txConsumer t.ModuleID) *StatInterceptor
type Stats ¶
type Stats struct {
// contains filtered or unexported fields
}
func (*Stats) AvgLatency ¶
func (*Stats) Delivered ¶
func (s *Stats) Delivered(tx *trantorpb.Transaction)
func (*Stats) DeliveredTransactions ¶ added in v0.4.0
func (*Stats) NewTX ¶ added in v0.4.0
func (s *Stats) NewTX(tx *trantorpb.Transaction)
func (*Stats) WriteCSVHeader ¶
Click to show internal directories.
Click to hide internal directories.