stats

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StatsDataFetcher

type StatsDataFetcher interface {
	datarepo.DataFetcher
	ClearStats()
	// number of ids sent for reading to the DataFetcher
	Reads() int64
}

func NewStatsDataFetcher

func NewStatsDataFetcher(delegate datarepo.DataFetcher) StatsDataFetcher

Creates a new DataFetcher that keeps stats for an underlying/delegate DataFetcher

type StatsDataWriter

type StatsDataWriter interface {
	datarepo.DataWriter
	ClearStats()
	// number of Create operations invoked in the DataWriter
	Creates() int64
	// number of Update operations invoked in the DataWriter
	Updates() int64
}

func NewStatsDataWriter

func NewStatsDataWriter(delegate datarepo.DataWriter) StatsDataWriter

Creates a new DataWriter that keeps stats for an underlying/delegate DataWriter

Jump to

Keyboard shortcuts

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