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
Click to show internal directories.
Click to hide internal directories.