]> git.lizzy.rs Git - go-anidb.git/blobdiff - groupcache.go
anidb: Document which backend API is used on the Get* methods
[go-anidb.git] / groupcache.go
index 4e659d7a2de74e84d6e5c57f3185d1641be6e834..deed5387679396895b18d2585d4990353f3e139c 100644 (file)
@@ -56,7 +56,7 @@ func (c *gidCache) IsStale() bool {
        return true
 }
 
-// Retrieves a Group by its GID.
+// Retrieves a Group by its GID. Uses the UDP API.
 func (adb *AniDB) GroupByID(gid GID) <-chan *Group {
        keys := []cacheKey{"gid", gid}
        ch := make(chan *Group, 1)
@@ -99,6 +99,7 @@ func (adb *AniDB) GroupByID(gid GID) <-chan *Group {
 }
 
 // Retrieves a Group by its name. Either full or short names are matched.
+// Uses the UDP API.
 func (adb *AniDB) GroupByName(gname string) <-chan *Group {
        keys := []cacheKey{"gid", "by-name", gname}
        altKeys := []cacheKey{"gid", "by-shortname", gname}