package
3.0.23+incompatible
Repository: https://github.com/jaqx0r/mtail.git
Documentation: pkg.go.dev

# Packages

Package code contains the bytecode instructions for the mtail virtual machine.
No description provided by the author
Package vm provides a virtual machine environment for executing mtail bytecode.

# Functions

CompileOnly sets the Runtime to compile programs only, without executing them.
DumpAst emits the AST after program compilation.
DumpAstTypes emits the AST after type checking.
DumpBytecode instructs the loader to print the compiled bytecode after code generation.
ErrorsAbort sets the Runtime to abort the Runtime on compile errors.
LogRuntimeErrors instructs the VM to emit runtime errors into the log.
MaxRecursionDepth sets the maximum depth the abstract syntax tree built during lexation can have.
MaxRegexpLength sets the maximum length an mtail regular expression can have, in terms of characters.
New creates a new program loader that reads programs from programPath.
OmitMetricSource instructs the Runtime to not annotate metrics with their program source when added to the metric store.
OverrideLocation sets the timezone location for the VM.
PrometheusRegisterer passes in a registry for setting up exported metrics.
SyslogUseCurrentYear instructs the VM to annotate yearless timestamps with the current year.
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
LineCount counts the number of lines received by the program loader.
ProgLoadErrors counts the number of program load errors.
ProgLoads counts the number of program load events.
ProgUnloads counts the number of program unload events.

# Structs

Runtime handles the lifecycle of programs and virtual machines, by watching the configured program source directory, compiling changes to programs, and managing the virtual machines.

# Type aliases

Option configures a new program Runtime.