seencheck

package
v1.0.82 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Seencheck

type Seencheck struct {
	Count *int64
	DB    leveldb.Store
}

Seencheck holds the Seencheck database and the seen counter

func New

func New(jobPath string) (seencheck *Seencheck, err error)

func (*Seencheck) Close

func (seencheck *Seencheck) Close()

func (*Seencheck) IsSeen

func (seencheck *Seencheck) IsSeen(hash string) (found bool, value string)

IsSeen check if the hash is in the seencheck database

func (*Seencheck) Seen

func (seencheck *Seencheck) Seen(hash, value string)

Seen mark a hash as seen and increment the seen counter

func (*Seencheck) SeencheckURL added in v1.0.75

func (seencheck *Seencheck) SeencheckURL(URL string, URLType string) bool

Jump to

Keyboard shortcuts

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