bolt

package
v0.0.0-...-b292b7d Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LinkBucketName []byte = []byte("link")
	SiteBucketName []byte = []byte("site")
	BlobBucketName []byte = []byte("blob")
)

Functions

This section is empty.

Types

type BoltStore

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

func (*BoltStore) AllowedSites

func (b *BoltStore) AllowedSites() (res []*crawler.Site, e error)

func (*BoltStore) Connect

func (b *BoltStore) Connect(filepath string) (e error)
func (b *BoltStore) CountLink() (count int)

func (*BoltStore) CountSite

func (b *BoltStore) CountSite() (count int)

func (*BoltStore) GetBlob

func (b *BoltStore) GetBlob(key string) ([]byte, error)
func (b *BoltStore) GetLink(rawurl string) (*crawler.Link, bool)

func (*BoltStore) GetSite

func (b *BoltStore) GetSite(host string) (*crawler.Site, bool)

func (*BoltStore) NotVisited

func (b *BoltStore) NotVisited() (res []*crawler.Link, e error)

func (*BoltStore) SaveBlob

func (b *BoltStore) SaveBlob(key string, in []byte) (e error)
func (b *BoltStore) SaveLink(l *crawler.Link) error

func (*BoltStore) SaveSite

func (b *BoltStore) SaveSite(s *crawler.Site) error

func (*BoltStore) Visited

func (b *BoltStore) Visited() (res []*crawler.Link, e error)

Jump to

Keyboard shortcuts

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