rewrite

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const AllLanguages = "all"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Debug bool
}

type LanguageRules

type LanguageRules struct {
	Language     string
	BuilderRules []builder.RewriteRule
	OptionRules  []option.RewriteRule
}

type Rewriter

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

func NewRewrite

func NewRewrite(languageRules []LanguageRules, config Config) *Rewriter

func (*Rewriter) ApplyTo

func (engine *Rewriter) ApplyTo(schemas ast.Schemas, builders []ast.Builder, language string) ([]ast.Builder, error)

Jump to

Keyboard shortcuts

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