handlers

package
v3.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package handlers contains default modelx.Handler handlers.

Index

Constants

This section is empty.

Variables

View Source
var NoHandler noHandler

NoHandler is a Handler that does not print anything

View Source
var StdoutHandler stdoutHandler

StdoutHandler is a Handler that logs on stdout.

Functions

This section is empty.

Types

type SavingHandler

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

SavingHandler saves the events it receives.

func (*SavingHandler) OnMeasurement

func (sh *SavingHandler) OnMeasurement(ev modelx.Measurement)

OnMeasurement implements modelx.Handler.OnMeasurement

func (*SavingHandler) Read

func (sh *SavingHandler) Read() []modelx.Measurement

Read extracts the saved events

Jump to

Keyboard shortcuts

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