skippeers

package
v1.18.2 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: BSD-3-Clause Imports: 4 Imported by: 2

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 added in v1.14.0

func NewList() *List

func (*List) Add

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

func (*List) ChunkPeers added in v1.14.0

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

func (*List) Close added in v1.15.0

func (l *List) Close() error

func (*List) PruneExpiresAfter added in v1.14.0

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