Documentation ¶
Index ¶
- type AuthStatus
- func (s *AuthStatus) AddPeer(ctx context.Context, peerID peer.ID, name, uniqAlias string, confirmed bool)
- func (s *AuthStatus) AuthStreamHandler(stream network.Stream)
- func (s *AuthStatus) BackgroundExchangeStatusInfo(ctx context.Context)
- func (s *AuthStatus) BackgroundRetryAuthRequests(ctx context.Context)
- func (s *AuthStatus) BlockPeer(peerID peer.ID, name string)
- func (s *AuthStatus) ExchangeNewStatusInfo(ctx context.Context, remotePeerID peer.ID, knownPeer config.KnownPeer) error
- func (s *AuthStatus) ExchangeStatusInfoWithAllKnownPeers(ctx context.Context)
- func (s *AuthStatus) GetIngoingAuthRequests() map[string]protocol.AuthPeer
- func (s *AuthStatus) SendAuthRequest(ctx context.Context, peerID peer.ID, req protocol.AuthPeer) error
- func (s *AuthStatus) StatusStreamHandler(stream network.Stream)
- type P2p
- type Tunnel
- type VpnPeer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthStatus ¶
type AuthStatus struct {
// contains filtered or unexported fields
}
func NewAuthStatus ¶
func (*AuthStatus) AuthStreamHandler ¶
func (s *AuthStatus) AuthStreamHandler(stream network.Stream)
func (*AuthStatus) BackgroundExchangeStatusInfo ¶
func (s *AuthStatus) BackgroundExchangeStatusInfo(ctx context.Context)
func (*AuthStatus) BackgroundRetryAuthRequests ¶
func (s *AuthStatus) BackgroundRetryAuthRequests(ctx context.Context)
func (*AuthStatus) ExchangeNewStatusInfo ¶
func (*AuthStatus) ExchangeStatusInfoWithAllKnownPeers ¶
func (s *AuthStatus) ExchangeStatusInfoWithAllKnownPeers(ctx context.Context)
func (*AuthStatus) GetIngoingAuthRequests ¶
func (s *AuthStatus) GetIngoingAuthRequests() map[string]protocol.AuthPeer
func (*AuthStatus) SendAuthRequest ¶
func (*AuthStatus) StatusStreamHandler ¶
func (s *AuthStatus) StatusStreamHandler(stream network.Stream)
type P2p ¶
type P2p interface { ConnectPeer(ctx context.Context, peerID peer.ID) error NewStream(ctx context.Context, id peer.ID, proto libp2pProtocol.ID) (network.Stream, error) NewStreamWithDedicatedConn(ctx context.Context, id peer.ID, proto libp2pProtocol.ID) (network.Stream, error) SubscribeConnectionEvents(onConnected, onDisconnected func(network.Network, network.Conn)) ProtectPeer(id peer.ID) }
type Tunnel ¶
type Tunnel struct {
// contains filtered or unexported fields
}
func (*Tunnel) RefreshPeersList ¶
func (t *Tunnel) RefreshPeersList()
func (*Tunnel) StreamHandler ¶
Click to show internal directories.
Click to hide internal directories.