plugin

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

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

Plugin loads flow components.

func Load

func Load(path string) (*Plugin, error)

Load loads a plugin from disk.

func (*Plugin) Apply

func (p *Plugin) Apply(ctx core.Context, parser *flow.Parser) (Summary, error)

Apply adds and flow components from the plugin to the parser.

type Summary

type Summary struct {
	Replaced []string
}

Summary summarizes the result of a plugn application.

Jump to

Keyboard shortcuts

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