Documentation
¶
Overview ¶
Package provider implements content advertisement for the peerd P2P system, advertising available content to peers via DHT routing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Provide ¶
Provide advertises content availability to the DHT network. Runs in a blocking loop, listening for blob identifiers on filesChan and advertising them via the routing system. Exits when ctx is cancelled.
Parameters:
- ctx: Context for cancellation and deadline propagation
- r: Router for advertising content through the DHT
- filesChan: Channel receiving blob identifiers (SHA256 digest, optionally with range suffix) to advertise
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.