routerForward

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2022 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProtocolList = []string{"upnp", "notice", "none"}

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Redo() error
	Close()
}

func NewTCPForward

func NewTCPForward(config string, port int) (Interface, error)

func NewTCPForward_None

func NewTCPForward_None(port int) (Interface, error)

func NewTCPForward_Notice

func NewTCPForward_Notice(port int) (Interface, error)

func NewTCPForward_UPNP

func NewTCPForward_UPNP(port int) (Interface, error)

func NewUDPForward

func NewUDPForward(config string, port int) (Interface, error)

func NewUDPForward_None

func NewUDPForward_None(port int) (Interface, error)

func NewUDPForward_Notice

func NewUDPForward_Notice(port int) (Interface, error)

func NewUDPForward_UPNP

func NewUDPForward_UPNP(port int) (Interface, error)

type None

type None struct {
}

func (*None) Close

func (u *None) Close()

func (*None) Redo

func (u *None) Redo() error

type Notice

type Notice struct {
}

func (*Notice) Close

func (u *Notice) Close()

func (*Notice) Redo

func (u *Notice) Redo() error

type UPNP

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

func (*UPNP) Close

func (u *UPNP) Close()

func (*UPNP) Redo

func (u *UPNP) Redo() error

Jump to

Keyboard shortcuts

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