recentlist

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2016 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(rec *record.Head)

Append add a infos generated from the record.

func Datfiles

func Datfiles() []string

Datfiles returns all datfile names in recentlist.

func GetRecords

func GetRecords() []*record.Head

GetRecords copies and returns recorcds in recentlist.

func Getall

func Getall(all bool)

Getall retrieves Recent records from nodes in searchlist and stores them. tags are shuffled and truncated to tagsize and stored to sugtags in cache. also source nodes are stored into lookuptable. also tags which Recentlist doen't have in sugtagtable are truncated

func IsInUpdateRange

func IsInUpdateRange(nstamp int64) bool

IsInUpdateRange returns true if stamp is in updateRange.

func Newest

func Newest(datfile string) (*record.Head, error)

Newest returns newest record of datfile in the list. if not found returns nil.

func RemoveOlds

func RemoveOlds()

RemoveOlds remove old records..

Types

This section is empty.

Jump to

Keyboard shortcuts

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