1 // Attempt at high level client library for AniDB's APIs
8 // Main struct for the client, contains all non-shared state.
10 // All ObjectByKey methods (AnimeByID, GroupByName, etc) first try to read
11 // from the cache. If the sought object isn't cached, or if the cache is
12 // stale, then the appropriate API is queried.
14 Timeout time.Duration // Timeout for the various calls (default: 45s)
19 // Initialises a new AniDB.
20 func NewAniDB() *AniDB {
22 Timeout: 45 * time.Second,