processor

package
v2.0.0-rc9 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 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 Factory

type Factory interface {
	Register(name string, fn FactoryFn, optFn func() []byte)
	Get(name string) (FactoryFn, bool)
	GetOptGen(name string) (fn func() []byte, ok bool)
	Names() []string
}

type FactoryFn

type FactoryFn func(o *option.ResultOption, opr *option.Result) (Processor, error)

type Processor

type Processor interface {
	Name() string
	Generators(pkg *packages.Package, wd string) []generator.Generator
}

Jump to

Keyboard shortcuts

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