Documentation ¶
Overview ¶
Package importer imports content from third-party websites.
TODO(bradfitz): Finish this. Barely started.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterParser ¶
Types ¶
type Importer ¶
type Importer struct { // Target is the blobserver to populate. Target blobserver.StatReceiver // ProgressChan optionally specifies a channel to receive // progress messages of various types. The types sent may be: // - *ProgressMessage // - *NewPermanodeMessage ProgressChan chan<- interface{} // Client optionally specifies how to fetch external network // resources. If nil, http.DefaultClient is used. Client *http.Client }
An Importer imports content from third-party websites into a Camlistore repo.
type Parser ¶
type Parser interface { CanHandleURL(url string) YesNoMaybe CanHandleResponse(res *http.Response) bool Import(im *Importer) error }
A Parser
type ProgressMessage ¶
type YesNoMaybe ¶
type YesNoMaybe int
YesNoMaybe is a tri-state of "yes", "no", and "maybe".
const ( No YesNoMaybe = iota Yes Maybe )
Click to show internal directories.
Click to hide internal directories.