]> git.lizzy.rs Git - go-anidb.git/log
go-anidb.git
10 years agoudpapi: Avoid out-of-bounds access on malformed packets
Diogo Franco (Kovensky) [Sun, 14 Jul 2013 17:32:50 +0000 (14:32 -0300)]
udpapi: Avoid out-of-bounds access on malformed packets

Also reports the strconv.ParseInt error if it's not possible to decode
the reply's code.

10 years agohttpapi: Better support for Resources
Diogo Franco (Kovensky) [Sun, 14 Jul 2013 17:30:22 +0000 (14:30 -0300)]
httpapi: Better support for Resources

10 years agoudpapi: Register types with encoding/gob
Diogo Franco (Kovensky) [Sat, 13 Jul 2013 02:22:02 +0000 (23:22 -0300)]
udpapi: Register types with encoding/gob

10 years agoudpapi: Finish(?) partially-done refactor, fixes compilation
Diogo Franco (Kovensky) [Sat, 13 Jul 2013 02:12:55 +0000 (23:12 -0300)]
udpapi: Finish(?) partially-done refactor, fixes compilation

I didn't break the API with the previous commit :(

10 years agoudpapi: Server-side timeouts are unrelated to UDP timeouts
Diogo Franco (Kovensky) [Sat, 13 Jul 2013 02:03:50 +0000 (23:03 -0300)]
udpapi: Server-side timeouts are unrelated to UDP timeouts

Yay, first API breakage.

10 years agoudpapi: escape & as &amp; and \n as <br/>
Diogo Franco (Kovensky) [Sat, 13 Jul 2013 01:57:20 +0000 (22:57 -0300)]
udpapi: escape & as &amp; and \n as <br/>

10 years agomisc: refactor, add tests, add list simplification method
Diogo Franco (Kovensky) [Sat, 13 Jul 2013 01:56:39 +0000 (22:56 -0300)]
misc: refactor, add tests, add list simplification method

10 years agomisc: New module with common / useful code
Diogo Franco (Kovensky) [Fri, 12 Jul 2013 15:39:24 +0000 (12:39 -0300)]
misc: New module with common / useful code

10 years agotitles: Specify how the search string is split
Diogo Franco (Kovensky) [Fri, 12 Jul 2013 21:44:59 +0000 (18:44 -0300)]
titles: Specify how the search string is split

10 years agoudp: rename to udpapi, reformat AniDBUDP documentation
Diogo Franco (Kovensky) [Fri, 12 Jul 2013 21:20:00 +0000 (18:20 -0300)]
udp: rename to udpapi, reformat AniDBUDP documentation

10 years agotitles: Document
Diogo Franco (Kovensky) [Fri, 12 Jul 2013 21:15:44 +0000 (18:15 -0300)]
titles: Document

10 years agoInitial commit
Diogo Franco (Kovensky) [Fri, 12 Jul 2013 20:22:58 +0000 (17:22 -0300)]
Initial commit

For now, only includes low-level wrappers for AniDB's various APIs. The
current API is in no way frozen and may break at any time.

These are not intended for being used in third party code, but as building
blocks for a unified API library.

The HTTP wrapper does simple encoding/xml wrapping of the anime and categorylist
HTTP API calls. No caching is implemented.

The UDP wrapper does rate control internally and implements the essential
session-keeping API calls, but does no caching.