value_logger

package
v0.0.0-...-0b3c072 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	FolderName    string `toml:"folder_name"`
	FlushInterval string `toml:"flush_interval"`
}

type LoggableValue

type LoggableValue struct {
	ValueId   string
	Value     packet.Value
	Timestamp time.Time
}

func ToLoggableValue

func ToLoggableValue(id string, value packet.Value, timestamp time.Time) LoggableValue

func (LoggableValue) Id

func (value LoggableValue) Id() string

func (LoggableValue) Log

func (value LoggableValue) Log() []string

type ValueLogger

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

func NewValueLogger

func NewValueLogger(boards []pod_data.Board, config Config) ValueLogger

func (*ValueLogger) Ids

func (vl *ValueLogger) Ids() common.Set[string]

func (*ValueLogger) Start

func (vl *ValueLogger) Start(basePath string) chan<- logger_handler.Loggable

Jump to

Keyboard shortcuts

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