delay

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Unlicense Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DelayMagic = "dely"
	DelayLen   = magic.Len + slice.Uint64Len
)

Variables

This section is empty.

Functions

func NewDelay

func NewDelay(d time.Duration) ont.Onion

Types

type Delay

type Delay struct {
	time.Duration
	ont.Onion
}

func (*Delay) Account

func (x *Delay) Account(res *sess.Data, sm *sess.Manager,
	s *sessions.Data, last bool) (skip bool, sd *sessions.Data)

func (*Delay) Decode

func (x *Delay) Decode(s *splice.Splice) (e error)

func (*Delay) Encode

func (x *Delay) Encode(s *splice.Splice) (e error)

func (*Delay) Handle

func (x *Delay) Handle(s *splice.Splice, p ont.Onion, ng ont.Ngin) (e error)

func (*Delay) Len

func (x *Delay) Len() int

func (*Delay) Magic

func (x *Delay) Magic() string

func (*Delay) Wrap

func (x *Delay) Wrap(inner ont.Onion)

Jump to

Keyboard shortcuts

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