Add initial prototype

This commit is contained in:
Dave Gallant
2020-03-31 21:31:52 -04:00
parent 89681da2ca
commit 6be207ffb7
15 changed files with 558 additions and 81 deletions

18
internal/controller.go Normal file
View File

@@ -0,0 +1,18 @@
package internal
import "time"
// Controller keeps everything together
type Controller struct {
Config Configuration
lastUpdate time.Time
Rss *RSS
}
// Init initiates the controller with config
func (c *Controller) Init(config string) {
c.Config = LoadConfiguration(config)
c.Rss = &RSS{}
c.Rss.New(c)
c.Rss.Update()
}