can

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

Logger is the instance of the CAN logger

func New

func New(ctx context.Context, cfg *configuration, outputDir string) *Logger

New creates a new instance of CAN Unit

func NewFromViper

func NewFromViper(ctx context.Context, viperCfg *viper.Viper, outputDir string) (*Logger, error)

NewFromViper creates a new CAN Unit from a viper configuration

func (*Logger) Run

func (l *Logger) Run() error

Run starts the CAN logger

func (*Logger) Write

func (l *Logger) Write(s *canpb.Sample, csvLogger *csvlogger.Writer) error

Jump to

Keyboard shortcuts

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