Registry / networking / ipfs-go-peertaskqueue

ipfs-go-peertaskqueue

JSON →
library0.8.3gogounverified

A priority queue for peer tasks in IPFS, used for managing work items per peer.

go get github.com/ipfs/go-peertaskqueue
INSTALL
IMPORT
SIG · IPFS-GO-PEERTASKQU
I
ipfs-go-peertaskqueue
networkinggov0.8.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

peertaskqueue
github.com/ipfs/go-peertaskqueue

Creates a peer task queue, pushes a task, and pops it.

package main import ( "fmt" "github.com/ipfs/go-peertaskqueue" ) func main() { queue := peertaskqueue.New() queue.Push(peertaskqueue.Task{ID: "task1", Priority: 1}) task := queue.Pop() fmt.Println(task.ID) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.8.3latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
ipfs-go-peertaskqueue — go get ipfs-go-peertaskqueue · libregistry