Documentation ¶
Index ¶
- Variables
- func Channels() *mgo.Collection
- func CreateUniqueIndexes()
- func DB() *mgo.Database
- func DBSession() *mgo.Session
- func Execute()
- func Fetcher()
- func Items() *mgo.Collection
- func Offset(c *gin.Context) int
- func PollFeed(uri string)
- func ProperHtml(text string) template.HTML
- func RunnerMiddleware() gin.HandlerFunc
- func Server()
- type Chnl
- type Config
- type Itm
Constants ¶
This section is empty.
Variables ¶
View Source
var CfgFile string
View Source
var RootCmd = &cobra.Command{
Use: "dagobah",
Short: "Dagobah is an awesome planet style RSS aggregator",
Long: `Dagobah provides planet style RSS aggregation. It
is inspired by python planet. It has a simple YAML configuration
and provides it's own webserver.`,
Run: rootRun,
}
Functions ¶
func CreateUniqueIndexes ¶
func CreateUniqueIndexes()
func ProperHtml ¶
func RunnerMiddleware ¶
func RunnerMiddleware() gin.HandlerFunc
Types ¶
type Chnl ¶
type Chnl struct { ObjectId bson.ObjectId `bson:"_id,omitempty"` Key string Title string Links []rss.Link Description string Language string Copyright string ManagingEditor string WebMaster string PubDate string LastBuildDate string Docs string Categories []*rss.Category Generator rss.Generator TTL int Rating string SkipHours []int SkipDays []int Image rss.Image ItemKeys []string Cloud rss.Cloud TextInput rss.Input Extensions map[string]map[string][]rss.Extension Id string Rights string Author rss.Author SubTitle rss.SubTitle }
func AllChannels ¶
func AllChannels() []Chnl
type Itm ¶
type Itm struct { ObjectId bson.ObjectId `bson:"_id,omitempty"` Date time.Time Key string ChannelKey string Title string FullContent string Links []*rss.Link Description string Author rss.Author Categories []*rss.Category Comments string Enclosures []*rss.Enclosure Guid *string `bson:",omitempty"` Source *rss.Source PubDate string Id string `bson:",omitempty"` Generator *rss.Generator Contributors []string Content *rss.Content Extensions map[string]map[string][]rss.Extension }
func (Itm) WorthShowing ¶
Click to show internal directories.
Click to hide internal directories.