protocol

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const Schema uint32 = 3

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetSet

type AssetSet struct {
	Entry   FileRef   `json:"entry"`
	Styles  []FileRef `json:"styles,omitempty"`
	Imports []FileRef `json:"imports,omitempty"`
}

type BuiltRoute

type BuiltRoute struct {
	Pattern   string     `json:"pattern"`
	Kind      string     `json:"kind"`
	ViewID    string     `json:"viewId"`
	Documents []Document `json:"documents,omitempty"`
}

type BuiltView

type BuiltView struct {
	ID     string        `json:"id"`
	Source string        `json:"source"`
	Mode   string        `json:"mode"`
	Client AssetSet      `json:"client"`
	Server *ServerAssets `json:"server,omitempty"`
}

type DescribeResult

type DescribeResult struct {
	Spec       Spec          `json:"spec"`
	SpecHash   string        `json:"specHash"`
	SourceRoot string        `json:"sourceRoot"`
	Limits     RuntimeLimits `json:"limits"`
}

type Document

type Document struct {
	Path     string             `json:"path"`
	File     FileRef            `json:"file"`
	Props    json.RawMessage    `json:"props,omitempty"`
	Document DocumentAttributes `json:"document"`
}

type DocumentAttributes

type DocumentAttributes struct {
	Lang  string `json:"lang"`
	Class string `json:"class,omitempty"`
	Dir   string `json:"dir,omitempty"`
}

type FileRef

type FileRef struct {
	Path string `json:"path"`
	Hash string `json:"hash"`
	Size int64  `json:"size"`
}

type GenerateResult

type GenerateResult struct {
	SpecHash string          `json:"specHash"`
	Limits   RuntimeLimits   `json:"limits"`
	Pages    []GeneratedPage `json:"pages"`
}

type GeneratedPage

type GeneratedPage struct {
	Pattern  string             `json:"pattern"`
	Path     string             `json:"path"`
	Props    json.RawMessage    `json:"props"`
	Document DocumentAttributes `json:"document"`
}

type Manifest

type Manifest struct {
	Schema             uint32        `json:"schema"`
	SpecHash           string        `json:"specHash"`
	BuildID            string        `json:"buildId"`
	Toolchain          Toolchain     `json:"toolchain"`
	Runtime            *FileRef      `json:"runtime,omitempty"`
	RuntimeCompression string        `json:"runtimeCompression,omitempty"`
	Views              []BuiltView   `json:"views"`
	Routes             []BuiltRoute  `json:"routes"`
	ClientFiles        []FileRef     `json:"clientFiles,omitempty"`
	Public             []PublicAsset `json:"public,omitempty"`
}

type PublicAsset

type PublicAsset struct {
	URL  string  `json:"url"`
	File FileRef `json:"file"`
}

type RouteSpec

type RouteSpec struct {
	Pattern string `json:"pattern"`
	View    string `json:"view"`
	Kind    string `json:"kind"`
}

type RuntimeLimits

type RuntimeLimits struct {
	MaxPropsBytes int `json:"maxPropsBytes"`
	MaxHeadBytes  int `json:"maxHeadBytes"`
	MaxFrameBytes int `json:"maxFrameBytes"`
}

type ServerAssets

type ServerAssets struct {
	Entry   FileRef   `json:"entry"`
	Imports []FileRef `json:"imports,omitempty"`
}

type Spec

type Spec struct {
	Schema uint32      `json:"schema"`
	Routes []RouteSpec `json:"routes"`
}

type Toolchain

type Toolchain struct {
	Bifrost string `json:"bifrost"`
	Bun     string `json:"bun"`
	Vite    string `json:"vite"`
	React   string `json:"react"`
}

Jump to

Keyboard shortcuts

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