delay

package
v0.1.10 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	MagicString = "dl"
	Len         = magicbytes.Len + slice.Uint64Len
)

Variables

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

Functions

This section is empty.

Types

type Layer

type Layer struct {
	time.Duration
	types.Onion
}

A Layer delay is a message to hold for a period of time before relaying.

func (*Layer) Decode

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

func (*Layer) Encode

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

func (*Layer) Inner

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

func (*Layer) Insert

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

func (*Layer) Len

func (x *Layer) Len() int

Jump to

Keyboard shortcuts

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