npm

package
v0.0.0-...-9398901 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 16 Imported by: 1

README

npm Feed

This feed allows polling of package updates from the repository.npmjs.org package repository.

Configuration options

The packages Field can be supplied to the npm feed options to enable polling of package specific apis. This is much slower with large lists of packages, but it is much less likely to miss package updates between polling.

feeds:
- type: npm
  options:
    packages:
    - lodash
    - react

Documentation

Index

Constants

View Source
const (
	FeedName = "npm"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Feed

type Feed struct {
	// contains filtered or unexported fields
}

func New

func New(feedOptions feeds.FeedOptions, eventHandler *events.Handler) (*Feed, error)

func (Feed) GetFeedOptions

func (feed Feed) GetFeedOptions() feeds.FeedOptions

func (Feed) GetName

func (feed Feed) GetName() string

func (Feed) Latest

func (feed Feed) Latest(cutoff time.Time) ([]*feeds.Package, time.Time, []error)

type Package

type Package struct {
	Title       string
	CreatedDate time.Time
	Version     string
	Unpublished bool
}

type PackageEvent

type PackageEvent struct {
	Title string `xml:"title"`
}

type Response

type Response struct {
	PackageEvents []PackageEvent `xml:"channel>item"`
}

Jump to

Keyboard shortcuts

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