Commit Graph

163 Commits

Author SHA1 Message Date
jim teeuwen 31d02da4ae Fixed bugs in channel/item identification 2010-12-18 19:11:37 +01:00
jim teeuwen f5f5baa34e Added Feed.LastUpdate() method. It returns the timestamp of the last time the feed was updated. Value is returned in seconds. 2010-12-18 18:19:53 +01:00
jim teeuwen a8057b0c92 Did some significant reworking of the Rss and Atom internals. The Feed object now supports passing in 2 funciton handlers which notify your app of any new Channels or Items. These functions are called whenever the feed is updated and new channels or items are found which previously did not exist. See src/feed_test.go for examples. This change also made it prudent to change some of the struct definitions. In particular the fields referencing other structs. They have been changed from Value to Pointer definitions. So beware that this may break some of your existing code. At the very least, the feeder.New() function now takes 2 extra parameters. 2010-12-18 00:25:16 +01:00
jim teeuwen eb15b6a3ef Made Feed.CanUpdate() public. This returns true if all cache timeout values have expired and a fresh remote update can be performed. Fixed bug where repeated calls to feed.Fetch() creates duplicate Channels instead of generating a fresh list. Did some minor code householding to replace manual slice appends with the builtin append() function. 2010-12-17 21:57:48 +01:00
jim teeuwen 24864b01f1 Added LICENSE file. Code falls under a 1-Clause BSD license, of which its contents can be found in said LICENSE file. 2010-12-15 19:04:12 +01:00
jim teeuwen 2f6b6f5930 Fix for recent Go release. 2010-08-25 21:31:56 +02:00
jim teeuwen 365cffa6a4 Updated code to conform with more recent go idioms. 2010-05-26 01:41:44 +02:00
jim teeuwen 49ab919bd7 Fixed code according to new Go release requirements. 2010-05-23 16:21:30 +02:00
jim teeuwen 62f2d4170f modified: README 2009-11-24 13:39:42 +01:00
jim teeuwen 6c6cbb9847 modified: README 2009-11-23 13:52:53 +01:00
jim teeuwen f1be4f9696 modified: README 2009-11-23 13:50:13 +01:00
jim teeuwen 45b7141ab2 modified: README 2009-11-23 13:49:11 +01:00
jim teeuwen c2601a5ce3 new file: README
new file:   src/Makefile
	new file:   src/atom.go
	new file:   src/author.go
	new file:   src/category.go
	new file:   src/channel.go
	new file:   src/cloud.go
	new file:   src/content.go
	new file:   src/enclosure.go
	new file:   src/feed.go
	new file:   src/feed_test.go
	new file:   src/generator.go
	new file:   src/image.go
	new file:   src/input.go
	new file:   src/item.go
	new file:   src/link.go
	new file:   src/rss.go
	new file:   src/source.go
	new file:   src/subtitle.go
2009-11-23 13:46:12 +01:00