Version: v0.0.0-...-548fca7 Latest Latest

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

Go to latest
Published: Dec 13, 2020 License: AGPL-3.0 Imports: 9 Imported by: 0




This section is empty.


This section is empty.


func Client

func Client() *firestore.Client

func DeleteSource

func DeleteSource(ctx context.Context, id string) error

func GetAllSources

func GetAllSources(ctx context.Context) ([]domain.Source, error)

func GetArticle

func GetArticle(ctx context.Context, id string) (*domain.Article, error)

func GetArticleByURL

func GetArticleByURL(ctx context.Context, url string) (*domain.Article, error)

func GetArticlesByTime

func GetArticlesByTime(ctx context.Context, start, end time.Time) ([]domain.Article, error)

func GetArticlesForOwner

func GetArticlesForOwner(ctx context.Context, ownerID string, start, end time.Time) ([]domain.Article, []domain.Source, error)

func GetEdition

func GetEdition(ctx context.Context, id string) (*domain.Edition, error)

func GetEditionForTime

func GetEditionForTime(ctx context.Context, t time.Time, allowRecent bool) (*domain.Edition, error)

func GetSource

func GetSource(ctx context.Context, id string) (*domain.Source, error)

func GetSources

func GetSources(ctx context.Context, ownerID string) ([]domain.Source, error)

func GetUser

func GetUser(ctx context.Context, id string) (*domain.User, error)

func GetUserByName

func GetUserByName(ctx context.Context, name string) (*domain.User, error)

func Init

func Init(ctx context.Context) error

func SetArticle

func SetArticle(ctx context.Context, a *domain.Article) error

func SetEdition

func SetEdition(ctx context.Context, e *domain.Edition) error

func SetSource

func SetSource(ctx context.Context, s *domain.Source) error

func SetUser

func SetUser(ctx context.Context, u *domain.User) error


This section is empty.

Source Files

Jump to

Keyboard shortcuts

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