Help us shape the future of Go! Take the 2026 Go Developer Survey

contractmeta

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 9 Imported by: 0

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