inspect

package
v0.72.2 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 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 ExtractFromTemplate added in v0.57.0

func ExtractFromTemplate(template string) ([]assets.Reference, []string)

ExtractFromTemplate extracts asset references and parent result references from the given template. Note that duplicates are not removed.

func Results

func Results(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(func(*flows.ResultInfo))
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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