envelope

package
v0.6.87 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package envelope checks the browser SDK's error envelope (app-debug v1): the JSON body of the log record @backplane-labs/backplane-errors writes. The schema is the one the SDK's tests validate against.

Index

Constants

This section is empty.

Variables

View Source
var ErrTrailing = errors.New("trailing envelope content")

ErrTrailing is JSON after the envelope's object.

Functions

func Decode

func Decode(body string) (map[string]any, error)

Decode reads one JSON object, numbers kept exact.

func Schema

func Schema() (*jsonschema.Schema, error)

Schema is the compiled envelope schema.

Types

This section is empty.

Jump to

Keyboard shortcuts

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