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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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