Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultEndpoint is the default GitHub API endpoint. DefaultEndpoint = "https://api.github.com" DefaultAPIRequestTimeout = 5 * time.Second )
Variables ¶
View Source
var (
ErrGettingLatestRelease = errors.New("error getting latest release")
)
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetLastVersionFromGithub ¶
GetLastVersionFromGithub gets the last version from github.
func (*Client) SetEndpoint ¶
func (*Client) SetHTTPClient ¶
type ResponseLatestRelease ¶
type ResponseLatestRelease struct {
TagName string `json:"tag_name"`
}
Click to show internal directories.
Click to hide internal directories.