forwarder

package
Version: v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TCP

func TCP(s *stack.Stack, nat map[tcpip.Address]tcpip.Address, natLock *sync.Mutex) *tcp.Forwarder

func UDP

func UDP(s *stack.Stack, nat map[tcpip.Address]tcpip.Address, natLock *sync.Mutex) *udp.Forwarder

Types

type PortsForwarder

type PortsForwarder struct {
	// contains filtered or unexported fields
}

func NewPortsForwarder

func NewPortsForwarder(s *stack.Stack) *PortsForwarder

func (*PortsForwarder) Expose

func (f *PortsForwarder) Expose(local, remote string) error

func (*PortsForwarder) Mux

func (f *PortsForwarder) Mux() http.Handler

func (*PortsForwarder) Unexpose

func (f *PortsForwarder) Unexpose(local string) error

Jump to

Keyboard shortcuts

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