Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewResolver ¶
func NewResolver( defaultResolver includes.ChildResolver, opts ...ResolverOption, ) includes.ChildResolver
NewResolver creates a new instance of a ChildResolver that routes child blueprint resolution to the appropriate resolver based on the include metadata `sourceType` field. The default resolver is used when no sourceType is provided, in most cases this should be a file system resolver.
Types ¶
type ResolverOption ¶
type ResolverOption func(*routerChildResolver)
func WithRoute ¶
func WithRoute(sourceType string, resolver includes.ChildResolver) ResolverOption
WithRoute adds a new route to the router resolver
Click to show internal directories.
Click to hide internal directories.