database

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Sub    int = 0x01
	UnSub      = 0x02
	GetSub     = 0x04
)
View Source
const MinTtl = 600

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	Feeds map[string]*Feed
	// contains filtered or unexported fields
}

func (*Database) Handle

func (db *Database) Handle(message core.Message)

func (*Database) Init

func (db *Database) Init()

func (*Database) ListeningTypes

func (db *Database) ListeningTypes() []string

func (*Database) Name

func (db *Database) Name() string

func (*Database) Poll

func (db *Database) Poll()

func (*Database) Send

func (db *Database) Send(message core.Message)

func (*Database) Serve

func (db *Database) Serve()

func (*Database) SetMessageChan

func (db *Database) SetMessageChan(sms chan core.Message)

type Feed

type Feed struct {
	gofeed.Feed

	URL        string
	FiledCount int
}

type Subscription

type Subscription struct {
	Op  int
	Url string
}

Jump to

Keyboard shortcuts

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