Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FlashMessage ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(store StoreInterface, oidcConfig *baseliboidc.OidcConfiguration, sessionKey string) (*Server, error)
type StoreInterface ¶
type StoreInterface interface { GetUserFeeds(userID int64) ([]db.Feed, error) GetFeedPosts(feedID, userID int64, limit int) ([]db.Post, error) GetPost(postID int64) (*db.Post, error) GetOrCreateUser(subject, issuer string) (int64, error) AddFeed(url string) (int64, error) AddFeedForUser(userID int64, url string) (int64, error) UpdateFeedTitle(feedID int64, title string) error AddPost(feedID int64, guid, title, link string, publishedAt time.Time, content string) error DeleteFeed(feedID string) error MarkPostAsSeen(userID int64, postID string) error MarkAllFeedPostsAsSeen(userID int64, feedID string) error GetUserPostsPerFeed(userID int64) (int, error) SetUserPostsPerFeed(userID int64, postsPerFeed int) error }
StoreInterface defines the interface that the server needs
Click to show internal directories.
Click to hide internal directories.