waitnext

package
v2.2.0-rc7 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package metrics provides service for collecting various metrics about peers. It is intended to be used with the kademlia where the metrics are collected.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WaitNext

type WaitNext struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New() *WaitNext

func (*WaitNext) Attempts

func (r *WaitNext) Attempts(addr swarm.Address) int

func (*WaitNext) Remove

func (r *WaitNext) Remove(addr swarm.Address)

func (*WaitNext) Set

func (r *WaitNext) Set(addr swarm.Address, tryAfter time.Time, attempts int)

func (*WaitNext) SetTryAfter

func (r *WaitNext) SetTryAfter(addr swarm.Address, tryAfter time.Time)

func (*WaitNext) Waiting

func (r *WaitNext) Waiting(addr swarm.Address) bool

Jump to

Keyboard shortcuts

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