handler

package
Version: v0.0.0-...-040724e Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2019 License: BSD-3-Clause, GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenericHandler

type GenericHandler struct {
	Labels             []ast.NameValue
	GenFunc            func(cmd interface{}) ([]ast.Inst, error)
	FilterFieldsForKey func(interface{}) (interface{}, error)
}

A GenericHandler is a configurable version of a Handler suitable for mixins

func (*GenericHandler) CanCompile

func (a *GenericHandler) CanCompile(req ast.Request) bool

CanCompile implements a Device

func (*GenericHandler) Compile

func (a *GenericHandler) Compile(ctx context.Context, nodes []ast.Node) ([]ast.Inst, error)

Compile implements a Device

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL