Documentation ¶
Index ¶
Constants ¶
View Source
const (
// AppTopicNATTraversalMethod represent NAT traversal method topic.
AppTopicNATTraversalMethod = "NAT-traversal-method"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NATTraversalMethod ¶
NATTraversalMethod represents information about NAT traversal methods results.
type NamedPortProvider ¶
type NamedPortProvider struct { Method string Provider PortProvider }
NamedPortProvider contains information of the NAT traversal method.
func OrderedPortProviders ¶
func OrderedPortProviders() (list []NamedPortProvider)
OrderedPortProviders returns a ordered list of the port providers.
type PortProvider ¶
type PortProvider interface {
PreparePorts() (ports []int, release func(), start StartPorts, err error)
}
PortProvider describes an method for provideing ports for the service.
func NewManualPortProvider ¶
func NewManualPortProvider() PortProvider
NewManualPortProvider creates new instance of the manual port provider.
func NewNATHolePunchingPortProvider ¶
func NewNATHolePunchingPortProvider() PortProvider
NewNATHolePunchingPortProvider creates new instance of the NAT hole punching port provider.
func NewUPnPPortProvider ¶
func NewUPnPPortProvider() PortProvider
NewUPnPPortProvider returns a new instance of the UPnP port provider.
Click to show internal directories.
Click to hide internal directories.