processor

package
v2.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: MIT Imports: 22 Imported by: 0

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