load

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

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 New

func New() *Loader

New returns shape loader implementation.

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.

Jump to

Keyboard shortcuts

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