harvester

package
v0.0.0-...-60c00b4 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IHarvester

type IHarvester interface {
	ListenTo(chan []byte) // wrap with a structure?
	GetMessagesChannel() chan IMessage
}

IHarvester is common interface for a sensor

type IMessage

type IMessage interface {
	// ReportToRedisStream writes data to Redis Stream
	ReportToRedisStream(*redis.Client, string) error
	// ReportToLog sends message to standard log system
	ReportToLog()
	// ToString returns string representations
	ToString() string
}

IMessage is a data message from sensor, visitor pattern

Jump to

Keyboard shortcuts

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