Documentation
¶
Index ¶
- type Node
- func (n *Node) Connect(ctx context.Context, resCh chan *Node) error
- func (n *Node) Disconnect() bool
- func (n *Node) Endpoint() string
- func (n *Node) EndpointSafe() string
- func (n *Node) IsConnected() bool
- func (n *Node) IsConnecting() bool
- func (n *Node) IsDead() bool
- func (n *Node) IsNew() bool
- func (n *Node) UpdatePingNonce()
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) Disconnect ¶
func (*Node) EndpointSafe ¶
wrapper with brackets for ipv6 needed for net.Dial
func (*Node) IsConnected ¶
func (*Node) IsConnecting ¶
func (*Node) UpdatePingNonce ¶
func (n *Node) UpdatePingNonce()
Click to show internal directories.
Click to hide internal directories.