router

package
v0.0.0-...-66da8c3 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

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