mvb

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: 15 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 MVB logger

func New

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

New creates a new instance of MVB Unit

func NewFromViper

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

NewFromViper creates a new MVB Unit from a viper configuration

func (*Logger) DumpStore

func (l *Logger) DumpStore(s *processdatastore.Store, csvLogger *csvlogger.Writer, dumpAll bool, recursionLevel int) error

DumpStore dumps the process data store to a csv file If dumpAll is true, all entries are dumped, otherwise only the entries that have been updated since the last dump

func (*Logger) Run

func (l *Logger) Run() error

Run starts the MVB logger

type TelegramObject

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

TelegramObject is a wrapper for the mvbpb.Telegram

func (*TelegramObject) AdditionalInfo

func (t *TelegramObject) AdditionalInfo() []string

AdditionalInfo returns additional information about the telegram

func (*TelegramObject) Address

func (t *TelegramObject) Address() uint32

Address returns the address of the telegram

func (*TelegramObject) Data

func (t *TelegramObject) Data() []byte

Data returns the data of the telegram

func (*TelegramObject) Timestamp

func (t *TelegramObject) Timestamp() int64

Timestamp returns the timestamp of the telegram

Jump to

Keyboard shortcuts

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