Documentation ¶
Index ¶
- func Client() *firestore.Client
- func DeleteSource(ctx context.Context, id string) error
- func GetAllSources(ctx context.Context) ([]domain.Source, error)
- func GetArticle(ctx context.Context, id string) (*domain.Article, error)
- func GetArticleByURL(ctx context.Context, url string) (*domain.Article, error)
- func GetArticlesByTime(ctx context.Context, start, end time.Time) ([]domain.Article, error)
- func GetArticlesForOwner(ctx context.Context, ownerID string, start, end time.Time) ([]domain.Article, []domain.Source, error)
- func GetEdition(ctx context.Context, id string) (*domain.Edition, error)
- func GetEditionForTime(ctx context.Context, t time.Time, allowRecent bool) (*domain.Edition, error)
- func GetSource(ctx context.Context, id string) (*domain.Source, error)
- func GetSources(ctx context.Context, ownerID string) ([]domain.Source, error)
- func GetUser(ctx context.Context, id string) (*domain.User, error)
- func GetUserByName(ctx context.Context, name string) (*domain.User, error)
- func Init(ctx context.Context) error
- func SetArticle(ctx context.Context, a *domain.Article) error
- func SetEdition(ctx context.Context, e *domain.Edition) error
- func SetSource(ctx context.Context, s *domain.Source) error
- func SetUser(ctx context.Context, u *domain.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetArticleByURL ¶
func GetArticlesByTime ¶
func GetArticlesForOwner ¶
func GetEditionForTime ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.