Documentation ¶
Index ¶
Constants ¶
View Source
const ( TLS_MODE_NONE = "NONE" TLS_MODE_TLS = "TLS" TLS_MODE_MTLS = "MTLS" )
View Source
const (
DefaultChannelBufferSize = 10000
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSVEncodedData ¶ added in v0.2.0
type CSVEncodedData struct { MessageSentTime time.Time `csv:"MessageSentTime"` MessageReceivedTime time.Time `csv:"MessageReceivedTime"` Latency time.Duration `csv:"Latency"` LatencyInNanoSeconds int `csv:"LatencyInNanoSeconds"` Partition int `csv:"Partition"` }
func NewCSVEncodedData ¶ added in v0.2.0
func NewCSVEncodedData(rawMetricsData RawMetricsData) CSVEncodedData
type Encoder ¶
type Encoder interface { EncodeAsStruct(result chan<- RawMetricsData) error Encode(destination io.Writer) error }
func NewEncoder ¶
func NewEncoder(source io.Reader, encoderConfig EncoderConfig) Encoder
type EncoderConfig ¶
type LatencyMetrics ¶
type LatencyMetrics struct {
// contains filtered or unexported fields
}
type MetricsCalculator ¶
type MetricsCalculator interface { AddRawMetric(rawMetricsData RawMetricsData) GetMetrics() Metrics }
func NewMetricsCalculator ¶
func NewMetricsCalculator() MetricsCalculator
type Monitor ¶
type Monitor interface { Start() error Stats() MonitorMetrics }
func NewMonitor ¶
func NewMonitor(destination io.Writer, appConfig MonitorConfig) (Monitor, error)
type MonitorConfig ¶
type MonitorMetrics ¶ added in v0.2.0
type RawMetricsData ¶
type RawMetricsData struct { MessageSentTime time.Time MessageReceivedTime time.Time Partition int }
func (RawMetricsData) Latency ¶
func (rawMetricsData RawMetricsData) Latency() time.Duration
type Reporter ¶
type Reporter interface { GenerateReport(writer io.Writer) error Stats() ReporterStats }
func NewReporter ¶
func NewReporter(reportConfig ReporterConfig, encoder Encoder, metricsCalculator MetricsCalculator) Reporter
type ReporterConfig ¶ added in v0.2.1
type ReporterStats ¶ added in v0.2.1
type ReporterStats struct {
RecordsProcessed int64
}
Click to show internal directories.
Click to hide internal directories.