provider

package
v0.0.14-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2025 License: MIT Imports: 4 Imported by: 0

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

func Provide(ctx context.Context, r routing.Router, filesChan <-chan string)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL