manifest

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manifest

type Manifest struct {
	Content string

	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New(url string, client *http.Client) *Manifest

func (*Manifest) Fetch

func (m *Manifest) Fetch() (bool, error)

func (*Manifest) Manifest

func (m *Manifest) Manifest() string

type ManifestCollection

type ManifestCollection struct {
	Content string

	sync.Mutex
	// contains filtered or unexported fields
}

func NewCollection

func NewCollection(manifests ...Source) *ManifestCollection

func (*ManifestCollection) Fetch

func (mc *ManifestCollection) Fetch() (bool, error)

func (*ManifestCollection) Manifest

func (mc *ManifestCollection) Manifest() string

type Source

type Source interface {
	Fetch() (changed bool, err error)
	Manifest() string
}

Jump to

Keyboard shortcuts

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