inspect

package
v0.43.2 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2019 License: AGPL-3.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dependencies

func Dependencies(s interface{}, localization flows.Localization, include func(assets.Reference))

Dependencies extracts dependencies

func ExtractFieldReferences

func ExtractFieldReferences(template string) []*assets.FieldReference

ExtractFieldReferences extracts fields references from the given template

func Results

func Results(node flows.Node, s interface{}, include func(*flows.ResultInfo))

Results extracts result infos

func TemplatePaths

func TemplatePaths(t reflect.Type, base string, include func(string))

func Templates

func Templates(s interface{}, localization flows.Localization, include func(string))

Templates extracts template values by reading engine tags on a struct

Types

type DependencyContainer

type DependencyContainer interface {
	Dependencies(flows.Localization, func(assets.Reference))
}

DependencyContainer allows flow objects to declare other dependencies

type EngineField

type EngineField struct {
	Type      reflect.Type
	JSONName  string
	Localized bool
	Evaluated bool
	Getter    func(reflect.Value) reflect.Value
}

EngineField is a struct field which is part of the flow spec (i.e. included in JSON) and optionally has a engine tag

type ResultContainer

type ResultContainer interface {
	Results(flows.Node, func(*flows.ResultInfo))
}

ResultContainer allows flow objects to declare that they can generate a result

Jump to

Keyboard shortcuts

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