carrier

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HardMaxBytes          int64 = 10 * 1024 * 1024
	DefaultMaxDepth             = 128
	DefaultMaxNodes             = 250_000
	DefaultMaxStringBytes       = 1024 * 1024
)

Variables

This section is empty.

Functions

func Pointer

func Pointer(parts []string) string

Types

type Failure

type Failure struct {
	Resource   bool
	Diagnostic result.Diagnostic
}

func Decode

func Decode(data []byte, limits Limits) (any, *Failure)

func (*Failure) Error

func (f *Failure) Error() string

type Limits

type Limits struct {
	MaxDepth       int
	MaxNodes       int
	MaxStringBytes int
}

func DefaultLimits

func DefaultLimits() Limits

Jump to

Keyboard shortcuts

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