contractmeta

package
v0.50.2 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: MIT Imports: 9 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 contractmeta describes a closed set of framework-owned wire structs. Application DTOs always supply their generated typed contract explicitly.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComposePage added in v0.3.0

func ComposePage(template contract.Schema, parameter, row, root contract.TypeID, includes ...contract.Type) contract.Schema

ComposePage substitutes the explicit row parameter in a pagination template. The template owns every page field; includes retain typed codec providers when constructing runtime contracts and normalized nodes when inspecting metadata.

func Struct

func Struct(root reflect.Type, structures []reflect.Type, overrides map[reflect.Type]contract.Type, includes ...contract.Type) (contract.Schema, error)

Struct uses actual JSON fields/tags and the shared promotion rules. Only listed structs may be inspected. Overrides and includes retain existing typed providers, so their native codecs are not erased by serialization.

func TypeID

func TypeID(typ reflect.Type) contract.TypeID

Types

type PageRow added in v0.3.0

type PageRow struct{}

PageRow is the named row parameter for metadata-only pagination templates.

Jump to

Keyboard shortcuts

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