backend

package
v0.0.0-...-a355528 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(funcName string, backend TemplateFunc)

Register registers a named backend. The function parameters will be matched in the =% %= tags of backend specification.

func Visit

func Visit(visitor func(funcName string, backend TemplateFunc))

Visit visits all the backends. The visitor is a function that is given a view of a function name bound to a generator function

Types

type ExecFunc

type ExecFunc func(script string) error

ExecFunc is the function of that backend that actually does work.

type Plugins

type Plugins func() discovery.Plugins

Plugins is the function that returns the plugins list

type TemplateFunc

type TemplateFunc func(plugins Plugins, opt ...interface{}) (ExecFunc, error)

TemplateFunc is the type of function exported / available to the scripting template

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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