]> git.lizzy.rs Git - go-anidb.git/blobdiff - anidb.go
anidb: Simplify documentation
[go-anidb.git] / anidb.go
index 1b69e714255c8ac729a9b42d044d9282a6a1fba1..bfe81d1ce1aa37867d7dbfd4e9da6fb3853c8d96 100644 (file)
--- a/anidb.go
+++ b/anidb.go
@@ -6,6 +6,10 @@ import (
 )
 
 // Main struct for the client, contains all non-shared state.
+//
+// All ObjectByKey methods (AnimeByID, GroupByName, etc) first try to read
+// from the cache. If the sought object isn't cached, or if the cache is
+// stale, then the appropriate API is queried.
 type AniDB struct {
        Timeout time.Duration // Timeout for the various calls (default: 45s)