aggregator

package
v0.0.0-...-2701915 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecCommand

func ExecCommand(outputPrefix, dir, command string, arg ...string) error

Types

type Aggregator

type Aggregator struct {
	Config  *Config
	Content map[string]*feeds.Feed
	// contains filtered or unexported fields
}

func NewAggregator

func NewAggregator(configPath string) (a *Aggregator, err error)

func (*Aggregator) Commit

func (a *Aggregator) Commit() error

func (*Aggregator) CreateDockerContainer

func (a *Aggregator) CreateDockerContainer() (id string, err error)

func (*Aggregator) Fetch

func (a *Aggregator) Fetch() error

func (*Aggregator) FindDockerContainer

func (a *Aggregator) FindDockerContainer() (string, bool, error)

func (*Aggregator) LoadConfig

func (a *Aggregator) LoadConfig(configPath string) error

func (*Aggregator) PullDockerImage

func (a *Aggregator) PullDockerImage() (err error)

func (*Aggregator) RemoveDockerContainer

func (a *Aggregator) RemoveDockerContainer(id string) (err error)

func (*Aggregator) Run

func (a *Aggregator) Run() error

func (*Aggregator) Start

func (a *Aggregator) Start() error

func (*Aggregator) StartDocker

func (a *Aggregator) StartDocker() error

func (*Aggregator) StartDockerContainer

func (a *Aggregator) StartDockerContainer(id string) (err error)

func (*Aggregator) StopDockerContainer

func (a *Aggregator) StopDockerContainer(id string) (err error)

func (*Aggregator) WriteHTML

func (a *Aggregator) WriteHTML() error

func (*Aggregator) WriteRSS

func (a *Aggregator) WriteRSS() error

type Config

type Config struct {
	Name                   string
	Description            string
	Link                   string
	AutoCommit             bool
	Organizations          map[string]Organization
	RefreshIntervalSeconds int64
	TemplatePath           string
	OutputPath             string
	StaticAssets           string
	TimeZone               string
}

type Organization

type Organization struct {
	Description string
	Author      string
	Slug        string
	Link        string
	Sources     []string
}

Jump to

Keyboard shortcuts

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