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.
Click to show internal directories.
Click to hide internal directories.