core

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	BotToken       string
	ChatID         string
	FeedURL        string
	Interval       time.Duration `json:"-"`
	IntervalSecond int           `json:"Interval"`

	LastPublished time.Time
}

func GetApp

func GetApp() (app *App, err error)

func (*App) Publish

func (app *App) Publish() (err error)

func (*App) Run

func (app *App) Run() (err error)

func (*App) Save

func (app *App) Save() (err error)

func (*App) SendMessage

func (app *App) SendMessage(m *Message) (err error)

type Message

type Message struct {
	Title string
	Link  string
}

Jump to

Keyboard shortcuts

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