processor

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: MIT Imports: 22 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetLogger

func SetLogger(logger logrus.FieldLogger)

Types

type ColumnSchema

type ColumnSchema struct {
	Type  *types.FieldType
	Index int
	Name  string
}

type OrderedLine

type OrderedLine struct {
	Order int
	Line  string
}

type PreparedTableConfig

type PreparedTableConfig struct {
	ColumnTemplates         map[string][]*templates.Template
	ColumnVariableTemplates map[string]*templates.Template
	GlobalVariables         map[string]string
	TableVariables          map[string]string
	RowVariableTemplates    []*templates.Template
}

type Processor

type Processor struct {
	Config config.Config
	// contains filtered or unexported fields
}

func NewProcessor

func NewProcessor(config config.Config) (*Processor, error)

func NewProcessorWithConfig

func NewProcessorWithConfig(configData config.Config) (*Processor, error)

func (Processor) Process

func (p Processor) Process(input io.Reader, output io.Writer, pCtx context.Context) (err error)

type TableSchema

type TableSchema struct {
	Columns columnMap
	Name    string
}

Jump to

Keyboard shortcuts

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