forward

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: Unlicense Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ForwardMagic = "forw"
	ForwardLen   = magic.Len + 1 + splice.AddrLen
)

Variables

This section is empty.

Functions

func NewForward

func NewForward(addr *netip.AddrPort) ont.Onion

Types

type Forward

type Forward struct {
	AddrPort *netip.AddrPort
	ont.Onion
}

func (*Forward) Account

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

func (*Forward) Decode

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

func (*Forward) Encode

func (x *Forward) Encode(s *splice.Splice) error

func (*Forward) GetOnion

func (x *Forward) GetOnion() interface{}

func (*Forward) Handle

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

func (*Forward) Len

func (x *Forward) Len() int

func (*Forward) Magic

func (x *Forward) Magic() string

func (*Forward) Wrap

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

Jump to

Keyboard shortcuts

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