otto

package
v0.0.0-...-1cd2087 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

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

Parser runs data through a javascript engine to execute parsing

func (*Parser) Parse

func (op *Parser) Parse(buffer []byte, line *ql.Line, config map[string]interface{}) error

Parse parses the buffer and adds it to the line struct the config[otto.script] should be a javascript function which returns a hash. Each key in the hash will be added to the line Data and will be indexed

Jump to

Keyboard shortcuts

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