Documentation
¶
Index ¶
- Variables
- func Contains(slice []string, item string) bool
- func DownloadUpdate() error
- func EmitEventIfNotCLI(eventName string, args ...interface{})
- func FormatNumber(amount int, decimalPlaces int) string
- func GetAccountNumber(token string) string
- func GetConfigPath() string
- func GetMaxPriority(buttonPriority map[int]int) int
- func GetUserAgent() string
- func Log(level LogLevel, logType LogType, username string, msg string)
- func RandHours(min, max float32) time.Duration
- func RandMinutes(min, max float32) time.Duration
- func RandSeconds(min, max float32) time.Duration
- func ReadConfig() (config.Config, error)
- func RunUpdater(updaterTempPath string, newBinaryTempPath string) error
- func SetCliMode(checker func() bool)
- func ShowErrorDialog(title, message string)
- func Sleep(duration time.Duration) <-chan bool
- type ApiResponse
- type Change
- type LogLevel
- type LogType
- type ProgressReader
- type VersionResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var Rng = rand.New(src)
Functions ¶
func DownloadUpdate ¶
func DownloadUpdate() error
func EmitEventIfNotCLI ¶
func EmitEventIfNotCLI(eventName string, args ...interface{})
func FormatNumber ¶
func GetAccountNumber ¶
func GetConfigPath ¶
func GetConfigPath() string
func GetMaxPriority ¶
func GetUserAgent ¶
func GetUserAgent() string
func RandMinutes ¶
func RandSeconds ¶
func ReadConfig ¶
func RunUpdater ¶
func SetCliMode ¶
func SetCliMode(checker func() bool)
func ShowErrorDialog ¶
func ShowErrorDialog(title, message string)
Types ¶
type ApiResponse ¶
func MakeAPIRequest ¶
func MakeAPIRequest(url string, headers map[string]string) (*ApiResponse, error)
type Change ¶
func CheckForUpdates ¶
type ProgressReader ¶
type ProgressReader struct {
// contains filtered or unexported fields
}
func NewProgressReader ¶
func NewProgressReader(r io.Reader, total int64, callback func(int)) *ProgressReader
type VersionResponse ¶
Click to show internal directories.
Click to hide internal directories.