store

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package store defines interfaces for types that handle storage of web page metadata, along with definitions of a few common errors.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrResourceNotFound = errors.New("resource not found in data store")
	ErrValueNotAllowed  = errors.New("value not allowed")
	ErrMappingNotFound  = errors.New("id mapping not found")
)

Functions

This section is empty.

Types

type URLDataStore

type URLDataStore interface {
	fetch.URLFetcher
	Database() *database.DBHandle
	Save(*resource.WebPage) (uint64, error)
	Delete(*nurl.URL) (bool, error)
}

This interface is the contract for storing and retrieving WebPage resources. It add Save() and Delete() methods to the fetch.URLFetcher interface.

Jump to

Keyboard shortcuts

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