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

controlbody

package
v0.18.1 Latest Latest
Warning

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

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

Documentation

Overview

Package controlbody strictly reads interrupt and restore request bodies before a dispatch attempt. These kinds carry a principal but no message.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckInterrupt

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

CheckInterrupt decodes a stored interrupt request. An absent legacy body carries no members and is allowed.

func CheckRestore

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

CheckRestore decodes a stored restore request. An absent legacy body carries no members and is allowed.

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