common

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 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
}

Keep last hash of network message.

func NewDuplicateChecker

func NewDuplicateChecker() *DuplicateChecker

Creates new DuplicateChecker.

func (*DuplicateChecker) Add

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

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