entry

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 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 DefaultHolder

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

func (*DefaultHolder) Add

func (d *DefaultHolder) Add(hash common.Hash128, entry interface{})

func (*DefaultHolder) Get

func (d *DefaultHolder) Get(hash common.Hash128) (interface{}, bool)

func (*DefaultHolder) Has

func (d *DefaultHolder) Has(hash common.Hash128) bool

func (*DefaultHolder) MaxPulls

func (d *DefaultHolder) MaxPulls() uint32

type Holder

type Holder interface {
	Add(hash common.Hash128, entry interface{})
	Has(hash common.Hash128) bool
	Get(hash common.Hash128) (interface{}, bool)
	MaxPulls() uint32
}

func NewDefaultHolder

func NewDefaultHolder(maxPulls int) Holder

Jump to

Keyboard shortcuts

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