Documentation ¶
Index ¶
- func Listen(proto, addr string) (net.Listener, error)
- type RouterClient
- type UpListener
- func (upl *UpListener) Accept() (net.Conn, error)
- func (upl *UpListener) Addr() net.Addr
- func (upl *UpListener) GetIPAndForwardPort() error
- func (upl *UpListener) GetInternalIPAddress() (string, error)
- func (upl *UpListener) Listen(proto, addr string) (net.Listener, error)
- func (upl *UpListener) Name() string
- func (upl *UpListener) PickRouterClient() (RouterClient, error)
- func (upl *UpListener) Poke(proto, addr string) error
- func (upl *UpListener) UPnPLoop(cancel context.CancelFunc)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RouterClient ¶
type RouterClient interface { AddPortMapping( NewRemoteHost string, NewExternalPort uint16, NewProtocol string, NewInternalPort uint16, NewInternalClient string, NewEnabled bool, NewPortMappingDescription string, NewLeaseDuration uint32, ) (err error) GetExternalIPAddress() ( NewExternalIPAddress string, err error, ) }
type UpListener ¶
func NewUpListener ¶
func NewUpListener(ctx context.Context) *UpListener
func (*UpListener) Addr ¶
func (upl *UpListener) Addr() net.Addr
func (*UpListener) GetIPAndForwardPort ¶
func (upl *UpListener) GetIPAndForwardPort() error
func (*UpListener) GetInternalIPAddress ¶
func (upl *UpListener) GetInternalIPAddress() (string, error)
func (*UpListener) Name ¶
func (upl *UpListener) Name() string
func (*UpListener) PickRouterClient ¶
func (upl *UpListener) PickRouterClient() (RouterClient, error)
func (*UpListener) Poke ¶
func (upl *UpListener) Poke(proto, addr string) error
func (*UpListener) UPnPLoop ¶
func (upl *UpListener) UPnPLoop(cancel context.CancelFunc)
Click to show internal directories.
Click to hide internal directories.