Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultInterval = 24 * time.Hour
)
Variables ¶
View Source
var ErrSkipped = errors.New("release check skipped")
View Source
var GitHubAPI = "https://api.github.com"
Functions ¶
func ShouldNotify ¶
func ShouldNotify(opts NotifyOptions) (bool, string)
func StatusText ¶
func StderrIsTerminal ¶
func StderrIsTerminal() bool
Types ¶
type NotifyOptions ¶
type Result ¶
type Result struct {
CheckedAt time.Time `json:"checked_at"`
CurrentVersion string `json:"current_version"`
LatestVersion string `json:"latest_version,omitempty"`
LatestURL string `json:"latest_url,omitempty"`
UpdateAvailable bool `json:"update_available"`
FromCache bool `json:"from_cache"`
Skipped bool `json:"skipped,omitempty"`
Reason string `json:"reason,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.