Documentation ¶
Index ¶
- Constants
- type CryptoPublicKeyPeerPeerSyncMap
- func (m *CryptoPublicKeyPeerPeerSyncMap) Delete(k crypto.PublicKey)
- func (m *CryptoPublicKeyPeerPeerSyncMap) Get(k crypto.PublicKey) (*peer.Peer, bool)
- func (m *CryptoPublicKeyPeerPeerSyncMap) Put(k crypto.PublicKey, v *peer.Peer)
- func (m *CryptoPublicKeyPeerPeerSyncMap) Range(i func(k crypto.PublicKey, v *peer.Peer) bool)
- type Discoverer
- type Store
Constants ¶
View Source
const (
ErrNoPeersToAsk = errors.Error("no peers to ask")
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CryptoPublicKeyPeerPeerSyncMap ¶ added in v0.5.0
type CryptoPublicKeyPeerPeerSyncMap struct {
// contains filtered or unexported fields
}
CryptoPublicKeyPeerPeerSyncMap -
func NewCryptoPublicKeyPeerPeerSyncMap ¶ added in v0.5.0
func NewCryptoPublicKeyPeerPeerSyncMap() *CryptoPublicKeyPeerPeerSyncMap
NewCryptoPublicKeyPeerPeerSyncMap constructs a new SyncMap
func (*CryptoPublicKeyPeerPeerSyncMap) Delete ¶ added in v0.5.0
func (m *CryptoPublicKeyPeerPeerSyncMap) Delete(k crypto.PublicKey)
Delete -
type Discoverer ¶
type Discoverer struct {
// contains filtered or unexported fields
}
Discoverer hyperspace
func NewDiscoverer ¶
func NewDiscoverer( ctx context.Context, ps discovery.PeerStorer, exc exchange.Exchange, local *peer.LocalPeer, bootstrapAddresses []string, ) (*Discoverer, error)
NewDiscoverer returns a new hyperspace discoverer
func (*Discoverer) Lookup ¶ added in v0.5.0
func (r *Discoverer) Lookup( ctx context.Context, opts ...peer.LookupOption, ) (<-chan *peer.Peer, error)
Lookup finds and returns peer infos from a fingerprint
Click to show internal directories.
Click to hide internal directories.