waitnext

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package waitnext 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 boson.Address) int

func (*WaitNext) Remove

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

func (*WaitNext) Set

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

func (*WaitNext) SetTryAfter

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

func (*WaitNext) Waiting

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

Jump to

Keyboard shortcuts

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