pinboard

package
v0.0.0-...-a9d0b9c Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2014 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package pinboard imports pinboard.in posts.

This package uses the v1 api documented here: https://pinboard.in/api.

Note that the api document seems to use 'post' and 'bookmark' interchangeably. We use 'post' everywhere in this code.

Posts in pinboard are mutable; they can be edited or deleted.

We handle edited posts by always reimporting everything and rewriting any nodes. Perhaps this would become more efficient if we would first compare the meta tag from pinboard to the meta tag we have stored to only write the node if there are changes.

We don't handle deleted posts. One possible approach for this would be to import everything under a new permanode, then once it is successful, swap the new permanode and the posts node (note: I don't think I really understand the data model here, so this is sort of gibberish).

I have exchanged email with Maciej Ceglowski of pinboard, who may in the future provide an api that lets us query what has changed. We might want to switch to that when available to make the import process more light-weight.

Index

Constants

View Source
const (

	// StatusTooManyRequests is the http status code returned by
	// pinboard servers if we have made too many requests for a
	// particular user.  If we receive this status code, we should
	// double the amount of time we wait before trying agian.
	StatusTooManyRequests = 429
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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