waitnext

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 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 cluster.Address) int

func (*WaitNext) Remove

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

func (*WaitNext) Set

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

func (*WaitNext) SetTryAfter

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

func (*WaitNext) Waiting

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

Jump to

Keyboard shortcuts

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