stats

package
v0.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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

func (*StatInterceptor) Intercept

func (i *StatInterceptor) Intercept(events *events.EventList) error

type Stats

type Stats struct {
	// contains filtered or unexported fields
}

func NewStats

func NewStats() *Stats

func (*Stats) AvgLatency

func (s *Stats) AvgLatency() time.Duration

func (*Stats) Delivered

func (s *Stats) Delivered(tx *trantorpb.Transaction)

func (*Stats) DeliveredTransactions added in v0.4.0

func (s *Stats) DeliveredTransactions() int

func (*Stats) NewTX added in v0.4.0

func (s *Stats) NewTX(tx *trantorpb.Transaction)

func (*Stats) Reset

func (s *Stats) Reset()

func (*Stats) WriteCSVHeader

func (s *Stats) WriteCSVHeader(w *csv.Writer)

func (*Stats) WriteCSVRecord

func (s *Stats) WriteCSVRecord(w *csv.Writer, d time.Duration)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL