monitor

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Monitor

type Monitor struct {
	Events chan *gov.Package
	// contains filtered or unexported fields
}

Monitor is responsible from monitoring government data registry.

func New

func New(
	pkg string,
	user int64,
	source Source,
) (*Monitor, error)

New creates new instance of Monitor.

func (*Monitor) Listen

func (monitor *Monitor) Listen() error

type Source

type Source interface {
	Package(id string) (*gov.Package, error)
}

Jump to

Keyboard shortcuts

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