harvest

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoMatch = errors.New("no items match harvest request")

Functions

This section is empty.

Types

type Item

type Item interface {
	GetLastModified() time.Time
	GetIdentifier() string
	GetData() io.Reader
}

type Page

type Page interface {
	GetCursor() int
	GetCompleteListSize() int
	GetItems() []Item
}

type Query

type Query struct {
	From  time.Time
	Until time.Time
}

func (Query) Valid

func (q Query) Valid(t time.Time) bool

type Syncer added in v0.3.0

type Syncer interface {
	Next() (Page, error)
	First(q Query) (Page, error)
}

Directories

Path Synopsis
internal
sru

Jump to

Keyboard shortcuts

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