Documentation
¶
Overview ¶
Package extensionvalue shares the bounded canonical value boundary used by metadata and settings. The public contract descriptor is the schema source.
Index ¶
Constants ¶
View Source
const MaxBatchBytes = 4 << 20
View Source
const MaxBytes = 256 << 10
Variables ¶
View Source
var ErrBatchLimit = safeerror.NewFault(fault.Conflict, "model extension JSON batch exceeds its byte limit")
ErrBatchLimit reports a batch retaining more than MaxBatchBytes of JSON. It matches fault.Conflict; slot loading retries such a batch in smaller parts.
Functions ¶
func Limits ¶
func Limits() contract.JSONLimits
Types ¶
type BatchBudget ¶
type BatchBudget struct {
// contains filtered or unexported fields
}
BatchBudget bounds retained JSON across a streamed result. A caller returns no partial result when this fails; one individually bounded row is decoded at a time by the ordinary query API.
func (*BatchBudget) Add ¶
func (b *BatchBudget) Add(snapshot value.JSON[json.RawMessage]) error
Click to show internal directories.
Click to hide internal directories.