autoupdate

package
v1.34.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2016 License: Apache-2.0 Imports: 14 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