blockedpeers

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(size int) *Manager

func (*Manager) Ban

func (m *Manager) Ban(key peer.ID, future time.Time)

func (*Manager) Contains

func (m *Manager) Contains(key peer.ID) bool

func (*Manager) IsBanned

func (m *Manager) IsBanned(key peer.ID, now time.Time) bool

func (*Manager) Keys

func (m *Manager) Keys() []peer.ID

func (*Manager) Len

func (m *Manager) Len() int

Jump to

Keyboard shortcuts

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