storage

package
v0.0.0-...-22dea01 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFeedEntryStorage

func NewFeedEntryStorage(db *storm.DB) rssfeeder.FeedEntryStorage

func NewFeedStorage

func NewFeedStorage(db *storm.DB) rssfeeder.FeedStorage

func NewStormDB

func NewStormDB(cfg *configuration.Configuration) (*storm.DB, error)

func NewUserStorage

func NewUserStorage(db *storm.DB) rssfeeder.UserStorage

Types

type Feed

type Feed struct {
	ID    int `storm:"id,increment"`
	Name  string
	Token string `storm:"index,unique"`
	Login string `storm:"index"`
}

type FeedEntry

type FeedEntry struct {
	ID         int    `storm:"id,increment"`
	Login      string `storm:"index"`
	FeedName   string `storm:"index"`
	URI        string
	CreateDate time.Time
}

type User

type User struct {
	ID       int    `storm:"id,increment"`
	Login    string `storm:"unique"`
	Password string
}

Jump to

Keyboard shortcuts

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