update

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2023 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationType

type ApplicationType int
const (
	AppTypeAwl ApplicationType = iota
	AppTypeAwlTray
)

type UpdateService

type UpdateService struct {
	NewVersion updaterini.Version
	// contains filtered or unexported fields
}

func NewUpdateService

func NewUpdateService(c *config.Config, logger *log.ZapEventLogger, appType ApplicationType) (UpdateService, error)

func (*UpdateService) CheckForUpdates

func (uc *UpdateService) CheckForUpdates() (bool, error)

func (*UpdateService) DoUpdate

func (uc *UpdateService) DoUpdate() (updaterini.UpdateResult, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL