skippeers

package
v2.2.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

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) Forever added in v2.2.0

func (l *List) Forever(chunk, peer swarm.Address)

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