runtime

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface added in v1.13.0

type Interface interface {
	Run([]string) error
}

Interface is the interface for the runtime library.

func New added in v1.13.0

func New(opts ...Option) Interface

New creates a runtime with the specified options.

type Logger added in v1.13.0

type Logger struct {
	logger.Interface
	// contains filtered or unexported fields
}

Logger adds a way to manage output to a log file to a logrus.Logger

func NewLogger added in v1.13.0

func NewLogger() *Logger

NewLogger creates an empty logger

func (*Logger) Reset added in v1.13.0

func (l *Logger) Reset() error

Reset closes the log file (if any) and resets the logger output to what it was before UpdateLogger was called.

func (*Logger) Update added in v1.13.0

func (l *Logger) Update(filename string, logLevel string, argv []string)

Update constructs a Logger with a preddefined formatter

type Option added in v1.13.0

type Option func(*rt)

Option is a function that configures the runtime.

func WithModeOverride added in v1.13.0

func WithModeOverride(mode string) Option

WithModeOverride allows for overriding the mode specified in the config.

Jump to

Keyboard shortcuts

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