index

package
v3.0.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalRevisitRef

func MarshalRevisitRef(revisitReference *gowarc.RevisitRef) (data []byte, err error)

func UnmarshalRevisitRef

func UnmarshalRevisitRef(data []byte) (*gowarc.RevisitRef, error)

Types

type DigestIndex

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

func NewDigestIndex

func NewDigestIndex(indexDir string, subdir string, keepIndex bool, newIndex bool) (idx *DigestIndex, err error)

func (*DigestIndex) Close

func (idx *DigestIndex) Close()

func (*DigestIndex) HasDiskSpace

func (digestIndex *DigestIndex) HasDiskSpace() error

func (*DigestIndex) IsRevisit

func (digestIndex *DigestIndex) IsRevisit(key string, revisitRef *gowarc.RevisitRef) (*gowarc.RevisitRef, error)

type FileIndex

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

func NewFileIndex

func NewFileIndex(indexDir string, subdir string, keepIndex, newIndex bool) (*FileIndex, error)

func (*FileIndex) Close

func (idx *FileIndex) Close()

func (*FileIndex) GetFileStats

func (idx *FileIndex) GetFileStats(key string) (result stat.Result, err error)

func (*FileIndex) SaveFileStats

func (idx *FileIndex) SaveFileStats(key string, result stat.Result) error

Jump to

Keyboard shortcuts

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