Documentation
¶
Overview ¶
Package load defines materialization responsibilities for runtime artifacts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrEmptyViewPlan = errors.New("shape load: no views available in plan")
)
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct {
Name string
URI string
Method string
RootView string
Views []string
Relations []*plan.Relation
ViewRelations []*view.Relation
Declarations map[string]*plan.ViewDeclaration
QuerySelectors map[string][]string
Predicates map[string][]*plan.ViewPredicate
TypeContext *typectx.Context
Directives *dqlshape.Directives
ColumnsDiscovery bool
Input []*plan.State
Output []*plan.State
Meta []*plan.State
Async []*plan.State
Other []*plan.State
}
Component is a shape-loaded runtime-neutral component artifact. It intentionally avoids repository package coupling to keep shape/load reusable.
type Loader ¶
type Loader struct{}
Loader materializes runtime view artifacts from normalized shape plan.
func (*Loader) LoadComponent ¶
func (l *Loader) LoadComponent(_ context.Context, planned *shape.PlanResult, _ ...shape.LoadOption) (*shape.ComponentArtifact, error)
LoadComponent implements shape.Loader.
func (*Loader) LoadViews ¶
func (l *Loader) LoadViews(_ context.Context, planned *shape.PlanResult, _ ...shape.LoadOption) (*shape.ViewArtifacts, error)
LoadViews implements shape.Loader.
Click to show internal directories.
Click to hide internal directories.