Help us shape the future of Go! Take the 2026 Go Developer Survey

inputbody

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package inputbody strictly reads a stored Core input request before the dispatch attempt, without rewriting the bytes handed to a product decoder.

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyBody = errors.New("inputbody: no inline body")

ErrEmptyBody is the cause of a malformed inline input with no bytes.

Functions

func Check

func Check(body []byte, session sessionwire.SessionID, command sessionwire.CommandID) (bodyclass.Members, error)

Check decodes the immutable body for its durable session and command.

Types

type MalformedError

type MalformedError struct{ Cause error }

MalformedError means no Host can read the immutable body.

func (*MalformedError) Error

func (e *MalformedError) Error() string

func (*MalformedError) Unwrap

func (e *MalformedError) Unwrap() error

Unwrap returns the decode failure.

type UnsupportedError

type UnsupportedError struct{ Cause error }

UnsupportedError means a newer Host may understand the body.

func (*UnsupportedError) Error

func (e *UnsupportedError) Error() string

func (*UnsupportedError) Unwrap

func (e *UnsupportedError) Unwrap() error

Unwrap returns the decode failure.

Jump to

Keyboard shortcuts

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