Documentation ¶
Index ¶
- func Dependencies(s interface{}, localization flows.Localization, include func(assets.Reference))
- func ExtractFromTemplate(template string) []assets.Reference
- func Results(node flows.Node, s interface{}, include func(*flows.ResultInfo))
- func TemplatePaths(t reflect.Type, base string, include func(string))
- func Templates(s interface{}, localization flows.Localization, include func(string))
- type DependencyContainer
- type EngineField
- type ResultContainer
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
ExtractFromTemplate extracts asset references from the given template
func Results ¶
func Results(node flows.Node, s interface{}, include func(*flows.ResultInfo))
Results extracts result infos
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
Click to show internal directories.
Click to hide internal directories.