mirror of
https://github.com/MedzikUser/go-utils.git
synced 2024-08-15 03:26:56 +00:00
28 lines
497 B
Go
28 lines
497 B
Go
package updater
|
|
|
|
import "time"
|
|
|
|
type Client struct {
|
|
// GitHub repo with author e.g. "MedzikUser/go-utils"
|
|
GitHub string
|
|
// GitHub Token
|
|
GitHubToken string
|
|
// Application version e.g. "2.15.43"
|
|
Version string
|
|
// Binary name in archive e.g. "utils.out"
|
|
Binary string
|
|
// Check latest version every
|
|
CheckEvery time.Duration
|
|
/*
|
|
After update exec function e.g.
|
|
func() {
|
|
os.Exit(0)
|
|
}
|
|
*/
|
|
AfterUpdate func()
|
|
|
|
// Update Rules
|
|
|
|
// Should I update the major? (X.y.z)
|
|
Major bool
|
|
}
|