common

package
v0.10.6 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DuplicateChecker

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

DuplicateChecker keeps last hash of network message.

func NewDuplicateChecker

func NewDuplicateChecker() *DuplicateChecker

NewDuplicateChecker creates new instance of DuplicateChecker.

func (*DuplicateChecker) Add

func (a *DuplicateChecker) Add(b []byte) (isNew bool)

Add compares new bytes with previous, if equal message is now new.

Jump to

Keyboard shortcuts

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