rss

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package rss implements rss event publisher. Posts new events to returned channel. Each event represents a new rss item

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	ChanTitle string
	Title     string
	Link      string
	Text      string
	GUID      string
}

Event from RSS

type Notify

type Notify struct {
	Feed     string
	Duration time.Duration
	Timeout  time.Duration
	// contains filtered or unexported fields
}

Notify on RSS change

func (*Notify) Go

func (n *Notify) Go(ctx context.Context) <-chan Event

Go starts notifier and returns events channel

func (*Notify) Shutdown

func (n *Notify) Shutdown()

Shutdown notifier

Jump to

Keyboard shortcuts

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