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.
Click to show internal directories.
Click to hide internal directories.