Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ILocalNode ¶
type ILocalNode interface { Interface GetPrivateKey() *ecdsa.PrivateKey GetLaunchTime() time.Time }
type LocalNode ¶
type LocalNode struct { Node // contains filtered or unexported fields }
func NewLocalNode ¶
func NewLocalNode() *LocalNode
func (*LocalNode) DiscoverNAT ¶
func (n *LocalNode) DiscoverNAT()
func (*LocalNode) GetLaunchTime ¶
func (*LocalNode) GetPrivateKey ¶
func (ln *LocalNode) GetPrivateKey() *ecdsa.PrivateKey
func (*LocalNode) SetRemoteIPPort ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) GetIDBytes ¶
func (*Node) GetLocalIP ¶
func (*Node) GetLocalPort ¶
func (*Node) GetNetwork ¶
func (*Node) GetPublicKey ¶
func (*Node) GetRemoteIP ¶
func (*Node) GetRemotePort ¶
type RemoteNode ¶
func NewRemoteNode ¶
func (*RemoteNode) GetSendIPWithPort ¶
func (r *RemoteNode) GetSendIPWithPort(local *LocalNode) (net.IP, int)
func (*RemoteNode) RefreshNode ¶
func (*RemoteNode) SetPublicKey ¶
func (r *RemoteNode) SetPublicKey(keyStr string)
Click to show internal directories.
Click to hide internal directories.