Back to godoc.org

Package repo

v0.0.0 (ffd16d0)
Latest Go to latest
Published: Jul 8, 2020 | License: LGPL-3.0 | Module: github.com/urandom/readeef

Index

Package Files

type Article

type Article interface {
	ForUser(content.User, ...content.QueryOpt) ([]content.Article, error)

	All(...content.QueryOpt) ([]content.Article, error)

	Count(content.User, ...content.QueryOpt) (int64, error)
	IDs(content.User, ...content.QueryOpt) ([]content.ArticleID, error)

	Read(bool, content.User, ...content.QueryOpt) error
	Favor(bool, content.User, ...content.QueryOpt) error

	RemoveStaleUnreadRecords() error
}

Article allows fetching and manipulating content.Article objects

type Extract

type Extract interface {
	Get(content.Article) (content.Extract, error)
	Update(content.Extract) error
}

Extract allows fetching and manipulating content.Extract objects

type Feed

type Feed interface {
	Get(content.FeedID, content.User) (content.Feed, error)
	FindByLink(link string) (content.Feed, error)

	ForUser(content.User) ([]content.Feed, error)
	ForTag(content.Tag, content.User) ([]content.Feed, error)
	All() ([]content.Feed, error)

	IDs() ([]content.FeedID, error)
	Unsubscribed() ([]content.Feed, error)

	Update(*content.Feed) ([]content.Article, error)
	Delete(content.Feed) error

	Users(content.Feed) ([]content.User, error)
	AttachTo(content.Feed, content.User) error
	DetachFrom(content.Feed, content.User) error

	SetUserTags(content.Feed, content.User, []*content.Tag) error
}

Feed allows fetching and manipulating content.Feed objects

type Scores

type Scores interface {
	Get(content.Article) (content.Scores, error)
	Update(content.Scores) error
}

Scores allows fetching and manipulating content.Scores objects

type Service

type Service interface {
	UserRepo() User
	TagRepo() Tag
	FeedRepo() Feed
	SubscriptionRepo() Subscription
	ArticleRepo() Article
	ExtractRepo() Extract
	ThumbnailRepo() Thumbnail
	ScoresRepo() Scores
}

Service provices access to the different content repositories.

type Subscription

type Subscription interface {
	Get(content.Feed) (content.Subscription, error)
	All() ([]content.Subscription, error)

	Update(content.Subscription) error
}

Subscription allows fetching and manipulating content.Subscription objects

type Tag

type Tag interface {
	Get(content.TagID, content.User) (content.Tag, error)

	ForUser(content.User) ([]content.Tag, error)
	ForFeed(content.Feed, content.User) ([]content.Tag, error)

	FeedIDs(content.Tag, content.User) ([]content.FeedID, error)
}

Tag allows fetching and manipulating content.Tag objects

type Thumbnail

type Thumbnail interface {
	Get(content.Article) (content.Thumbnail, error)
	Update(content.Thumbnail) error
}

Thumbnail allows fetching and manipulating content.Thumbnail objects

type User

type User interface {
	Get(content.Login) (content.User, error)
	All() ([]content.User, error)
	Update(content.User) error
	Delete(content.User) error

	FindByMD5([]byte) (content.User, error)
}

User allows manipulating content.User objects

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier