watcher

package
v0.0.0-...-0452748 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
}

Options contains the parameters necessary to configure a concrete Watcher implementation

type Watcher

type Watcher interface {
	CheckForUpdate(opts model.WatchOptions, since time.Time) (model.Update, error)
}

Watcher is the interface required by Sauron to detect changes.

func New

func New(opts Options) Watcher

New returns a new concrete Watcher implementation. For now, only Github is supported, it requires no special configuration and is the default

func NewGithub

func NewGithub() Watcher

NewGithub instantiates a new watcher for public GitHub repositories.

Jump to

Keyboard shortcuts

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