]>
git.lizzy.rs Git - go-anidb.git/log
Diogo Franco (Kovensky) [Sun, 14 Jul 2013 17:52:40 +0000 (14:52 -0300)]
titles: Add module description comment
Diogo Franco (Kovensky) [Sun, 14 Jul 2013 17:49:47 +0000 (14:49 -0300)]
anidb: rename SaveCurrentTitles to DumpTitles, convert to function
It's part of the Dump family of functions, and doesn't actually need any
data from an AniDB struct.
Diogo Franco (Kovensky) [Sun, 14 Jul 2013 17:45:22 +0000 (14:45 -0300)]
anidb: Initial attempt at high level AniDB library
Diogo Franco (Kovensky) [Sun, 14 Jul 2013 17:44:47 +0000 (14:44 -0300)]
titles: Check if the anime-titles database was loaded correctly
Diogo Franco (Kovensky) [Sun, 14 Jul 2013 17:44:08 +0000 (14:44 -0300)]
titles: Fix compilation of search_test
Forgotten commit.
Diogo Franco (Kovensky) [Sun, 14 Jul 2013 17:42:17 +0000 (14:42 -0300)]
titles: LoadDB from an io.Reader instead of io.ReadCloser
Diogo Franco (Kovensky) [Sun, 14 Jul 2013 17:41:44 +0000 (14:41 -0300)]
titles: Correctly load anime-titles.dat for testing
Diogo Franco (Kovensky) [Sun, 14 Jul 2013 17:38:24 +0000 (14:38 -0300)]
udpapi: Return pointers to reply structs
Keeps the reply structs convertible to APIReply. Also change the gob
registrations to use the pointer types.
Diogo Franco (Kovensky) [Sun, 14 Jul 2013 17:37:10 +0000 (14:37 -0300)]
udpapi: Don't keep UDP API key in ecbState
Also add test to check if ECB is indeed correctly implemented.
Diogo Franco (Kovensky) [Sun, 14 Jul 2013 17:34:21 +0000 (14:34 -0300)]
udpapi: Handle encryption correctly
Previously, the very first packet to be received after the ENCRYPT call
was not properly decrypted; the getPacket function was using the old
encryption state.
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.
Diogo Franco (Kovensky) [Sun, 14 Jul 2013 17:30:22 +0000 (14:30 -0300)]
httpapi: Better support for Resources
Diogo Franco (Kovensky) [Sat, 13 Jul 2013 02:22:02 +0000 (23:22 -0300)]
udpapi: Register types with encoding/gob
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 :(
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.
Diogo Franco (Kovensky) [Sat, 13 Jul 2013 01:57:20 +0000 (22:57 -0300)]
udpapi: escape & as & and \n as <br/>
Diogo Franco (Kovensky) [Sat, 13 Jul 2013 01:56:39 +0000 (22:56 -0300)]
misc: refactor, add tests, add list simplification method
Diogo Franco (Kovensky) [Fri, 12 Jul 2013 15:39:24 +0000 (12:39 -0300)]
misc: New module with common / useful code
Diogo Franco (Kovensky) [Fri, 12 Jul 2013 21:44:59 +0000 (18:44 -0300)]
titles: Specify how the search string is split
Diogo Franco (Kovensky) [Fri, 12 Jul 2013 21:20:00 +0000 (18:20 -0300)]
udp: rename to udpapi, reformat AniDBUDP documentation
Diogo Franco (Kovensky) [Fri, 12 Jul 2013 21:15:44 +0000 (18:15 -0300)]
titles: Document
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.