Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientPeer ¶
type ClientPeer struct {
Peer
}
func NewClientPeer ¶
func NewClientPeer(tunnelNum int, endpoint string, cipher tunnel.Cipher) ClientPeer
func (*ClientPeer) Dial ¶
func (cp *ClientPeer) Dial(address string) connection.Connection
type PeerGroup ¶
type PeerGroup struct {
// contains filtered or unexported fields
}
func NewPeerGroup ¶
func (*PeerGroup) AddTunnel ¶
func (pg *PeerGroup) AddTunnel(tunnel *tunnel_pool.Tunnel) error
Add a tunnel to it's peer; will create peer if not exists
func (*PeerGroup) AddTunnelFromConn ¶
Like AddTunnel, add a raw connection
func (*PeerGroup) RemovePeer ¶
type ServerPeer ¶
type ServerPeer struct {
Peer
}
func NewServerPeerWithID ¶
func NewServerPeerWithID(peerID uint32, peerContext context.Context, removePeerFunc context.CancelFunc) ServerPeer
Click to show internal directories.
Click to hide internal directories.