bind

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package bind validates frozen public P3 reads against the active schema and converts them into the closed internal read IR.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Request

func Request(frozen golem.FrozenReadRequest, registry *schema.Registry, providers policyir.ProviderSet) (readir.Request, error)

Types

type Error

type Error struct {
	Code   ErrorCode
	Model  golem.ModelID
	Field  golem.FieldID
	Detail string
	Cause  error
}

func (*Error) Error

func (failure *Error) Error() string

func (*Error) Unwrap

func (failure *Error) Unwrap() error

type ErrorCode

type ErrorCode string
const (
	CodeInput    ErrorCode = "P3_READ_BIND_INPUT"
	CodeModel    ErrorCode = "P3_READ_BIND_MODEL"
	CodeField    ErrorCode = "P3_READ_BIND_FIELD"
	CodeRelation ErrorCode = "P3_READ_BIND_RELATION"
	CodePolicy   ErrorCode = "P3_READ_BIND_POLICY"
)

Jump to

Keyboard shortcuts

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