Documentation ¶
Index ¶
- Constants
- type DB
- func (db *DB) Close() error
- func (db *DB) CountRegistrations(p peer.ID) (int, error)
- func (db *DB) Discover(ns string, cookie []byte, limit int) ([]dbi.RegistrationRecord, []byte, error)
- func (db *DB) Register(p peer.ID, ns string, addrs [][]byte, ttl int) (uint64, error)
- func (db *DB) Start(ctx context.Context) error
- func (db *DB) Unregister(p peer.ID, ns string) error
- func (db *DB) ValidCookie(ns string, cookie []byte) bool
- type PeerConnector
- type Rendezvous
Constants ¶
View Source
const RendezvousID = rvs.RendezvousProto
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
type PeerConnector ¶
type Rendezvous ¶
type Rendezvous struct {
// contains filtered or unexported fields
}
func NewRendezvous ¶
func NewRendezvous(enableServer bool, db *DB, discoverPeers bool, rendezvousPoints []peer.ID, peerConnector PeerConnector, log *zap.Logger) *Rendezvous
func (*Rendezvous) SetHost ¶ added in v0.6.0
func (r *Rendezvous) SetHost(h host.Host)
Sets the host to be able to mount or consume a protocol
func (*Rendezvous) Stop ¶
func (r *Rendezvous) Stop()
Click to show internal directories.
Click to hide internal directories.