waitnext

package
v0.0.0-...-c9321c3 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 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 penguin.Address) int

func (*WaitNext) Remove

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

func (*WaitNext) Set

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

func (*WaitNext) SetTryAfter

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

func (*WaitNext) Waiting

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

Jump to

Keyboard shortcuts

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