watcher

package
v2.3.5 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Watcher

type Watcher interface {
	Produce(chan common.NotifyPayload)
}

Watcher is a news source to watch.

func NewAkAnnounceWatcher

func NewAkAnnounceWatcher(dbPath string, debugURL string) (Watcher, error)

NewAkAnnounceWatcher creates a Watcher of Arknights game annoucements.

func NewSirenWatcher added in v2.3.0

func NewSirenWatcher(dbPath string, debugURL string) (Watcher, error)

NewSirenWatcher creates a Watcher of news from Monster Siren.

func NewWeiboWatcher

func NewWeiboWatcher(uid int64, sub string, subp string, debugURL string) (Watcher, error)

NewWeiboWatcher creates a Watcher of Arknights official Weibo.

func ParseWatchers added in v2.1.0

func ParseWatchers(configs []map[string]interface{}, dataPath string, debugMode bool) ([]Watcher, error)

ParseWatchers decodes the config returns a list of Watchers.

Jump to

Keyboard shortcuts

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