skippeers

package
v0.0.0-...-eb12069 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const MaxDuration time.Duration = math.MaxInt64

Variables

This section is empty.

Functions

This section is empty.

Types

type List

type List struct {
	// contains filtered or unexported fields
}

func NewList

func NewList() *List

func (*List) Add

func (l *List) Add(chunk, peer swarm.Address, expire time.Duration)

func (*List) ChunkPeers

func (l *List) ChunkPeers(ch swarm.Address) (peers []swarm.Address)

func (*List) Close

func (l *List) Close() error

func (*List) PruneExpiresAfter

func (l *List) PruneExpiresAfter(ch swarm.Address, d time.Duration) int

Jump to

Keyboard shortcuts

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