response

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MagicString = "rs"
	Len         = magicbytes.Len + slice.Uint32Len + sha256.Len
)

Variables

View Source
var (
	Magic = slice.Bytes(MagicString)
)

Functions

This section is empty.

Types

type Hook

type Hook struct {
	sha256.Hash
	Callback func()
}

type Hooks

type Hooks []Hook

func (Hooks) Add

func (h Hooks) Add(hash sha256.Hash, fn func()) (hh Hooks)

func (Hooks) Find

func (h Hooks) Find(hash sha256.Hash) (hh Hooks)

type OnionSkin

type OnionSkin struct {
	sha256.Hash
	slice.Bytes
}

OnionSkin messages are what are carried back via Reverse messages from an Exit.

func New

func New() *OnionSkin

func (*OnionSkin) Decode

func (x *OnionSkin) Decode(b slice.Bytes, c *slice.Cursor) (e error)

func (*OnionSkin) Encode

func (x *OnionSkin) Encode(b slice.Bytes, c *slice.Cursor)

func (*OnionSkin) Inner

func (x *OnionSkin) Inner() types.Onion

func (*OnionSkin) Insert

func (x *OnionSkin) Insert(_ types.Onion)

func (*OnionSkin) Len

func (x *OnionSkin) Len() int

Jump to

Keyboard shortcuts

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