Documentation
¶
Index ¶
Constants ¶
View Source
const (
GithubReleasesEndpoint string = "https://api.github.com/repos/xvello/letsblockit/releases?per_page=25"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Release ¶
type ReleaseClient ¶
ReleaseClient fetches and parses the github releases for a repository. The parsed results are cached in memory until the next restart.
func NewReleaseClient ¶
func NewReleaseClient(url string, cacheDir string, officialInstance bool, tp templateProvider) *ReleaseClient
func (*ReleaseClient) GetLatestAt ¶
func (c *ReleaseClient) GetLatestAt() (time.Time, error)
func (*ReleaseClient) GetReleases ¶
func (c *ReleaseClient) GetReleases() ([]*Release, string, error)
Click to show internal directories.
Click to hide internal directories.