gateway

package
v0.0.0-...-049d72a Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gateway

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

func NewGateway

func NewGateway() (*Gateway, error)

func (*Gateway) ClosePortMapUPNP

func (g *Gateway) ClosePortMapUPNP(externalPort int) error

func (*Gateway) ClosePortNatPMP

func (g *Gateway) ClosePortNatPMP(internalPort, externalPort int) error

func (*Gateway) OpenPortNatPMP

func (g *Gateway) OpenPortNatPMP(internalPort, externalPort int, protocol string, lifetime int) error

func (*Gateway) OpenPortUPNP

func (g *Gateway) OpenPortUPNP(internalPort, externalPort int, protocol string, lifetime int) error

Jump to

Keyboard shortcuts

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