heavykeeper

package
v0.0.0-...-f607f80 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Heap

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

type TopK

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

func New

func New(k uint32, width uint64, depth uint32, decay float64) TopK

func NewWtihSeed

func NewWtihSeed(k uint32, width uint64, depth uint32, decay float64, seed uint64) TopK

func (*TopK) AddAddr

func (t *TopK) AddAddr(addr netip.Addr)

func (*TopK) AddBytes

func (t *TopK) AddBytes(data []byte)

func (*TopK) GetAddrs

func (t *TopK) GetAddrs() map[netip.Addr]uint64

func (*TopK) GetBytes

func (t *TopK) GetBytes() map[string]uint64

func (*TopK) RankAddrs

func (t *TopK) RankAddrs() ([]netip.Addr, []uint64)

func (*TopK) RankBytes

func (t *TopK) RankBytes() ([][]byte, []uint64)

Jump to

Keyboard shortcuts

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