Documentation ¶ Index ¶ type Asset type Client func NewCachedClient(client Client, cache *cache.Cache) Client func NewClient(ctx context.Context, token string, maxReleases int) Client type Release Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Asset ¶ type Asset struct { Name string Downloads int } type Client ¶ type Client interface { Releases(repo string) ([]Release, error) Assets(repo string, id int64) ([]Asset, error) } func NewCachedClient ¶ func NewCachedClient(client Client, cache *cache.Cache) Client func NewClient ¶ func NewClient(ctx context.Context, token string, maxReleases int) Client type Release ¶ type Release struct { ID int64 Tag string } Source Files ¶ View all Source files cache.goclient.gogithub.go Click to show internal directories. Click to hide internal directories.