autoupdate

package
v1.30.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2015 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Updater

type Updater struct {
	UpdateInterval time.Duration
	SelfRestart    bool
	// contains filtered or unexported fields
}

Updater is a helper for autoupdating go-binaries with their builds on GoBuilder.me

func New

func New(repo, label string) *Updater

New instanciates a new Updater

func (*Updater) Run

func (g *Updater) Run() error

Run starts a permanent loop (better start as a go-routine) looking for updates to the current binary and will execute the update if required

Jump to

Keyboard shortcuts

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