updater

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2013 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnnounceBroadcast added in v1.1.0

func AnnounceBroadcast(c *config.Config) error

AnnounceBroadcast announces the completition of download of the broadcast to the server.

func AnnounceConfig added in v1.1.0

func AnnounceConfig(c *config.Config) error

AnnounceConfig announces the completition of download of the centralConfig to the server.

func ColdStart

func ColdStart(c *config.Config) (err error)

ColdStart downloads central config and the newest broadcast into folders specified in config, without announcing their downloads.

func DownloadBroadcast added in v1.1.0

func DownloadBroadcast(c *config.Config, ft string, destDir string) (err error)

DownloadBroadcast downloads a new broadcast from the server into a given directory, unzipping it, if it has .zip extension.

func DownloadConfig added in v1.1.0

func DownloadConfig(c *config.Config, destFile string) error

DownloadConfig ownloads a new centralConfig.json from the server into the given path.

Types

type Info added in v1.1.0

type Info struct {
	//Broadcast informs whether there is
	//a newer broadcast than the one client has.
	Broadcast bool

	//FileType gives the type of the broadcast file.
	FileType string

	//Config informs whether there is a newer version
	//of centralConfig available.
	Config bool
}

Info is a struct used to represent information about updated broadcast and config on the server.

func GetInfo added in v1.1.0

func GetInfo(c *config.Config) (i Info, err error)

GetInfo returns an Info struct with current information from server.

Jump to

Keyboard shortcuts

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