Documentation ¶
Index ¶
- func NewCategoryModel(c *fst.Client) model.CategoryModel
- func NewFeedModel(c *fst.Client) model.FeedModel
- func NewSubscriberModel(c *fst.Client, updateModel model.UpdateModel) model.SubscriberModel
- func NewSubscriptionModel(c *fst.Client, categoryModel model.CategoryModel, ...) model.SubscriptionModel
- func NewUpdateModel(c *firestore.Client) model.UpdateModel
- type FeedModel
- func (m FeedModel) Create(ctx context.Context, f *model.Feed) (string, error)
- func (m FeedModel) Delete(ctx context.Context, f *model.Feed) error
- func (m FeedModel) Get(ctx context.Context, cat *model.Category, id string) (*model.Feed, error)
- func (m FeedModel) GetAll(ctx context.Context, cat *model.Category) ([]model.Feed, error)
- func (m FeedModel) SetUpdated(ctx context.Context, f *model.Feed, u time.Time) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCategoryModel ¶
func NewCategoryModel(c *fst.Client) model.CategoryModel
NewCategoryModel initializes Firestore implementation of model.CategoryModel.
func NewFeedModel ¶
NewFeedModel initializes Firestore implementation of model.FeedModel.
func NewSubscriberModel ¶
func NewSubscriberModel(c *fst.Client, updateModel model.UpdateModel) model.SubscriberModel
NewSubscriberModel initializes Firestore implementation of model.SubscriberModel.
func NewSubscriptionModel ¶
func NewSubscriptionModel( c *fst.Client, categoryModel model.CategoryModel, subscriberModel model.SubscriberModel, updateModel model.UpdateModel, ) model.SubscriptionModel
NewSubscriptionModel initializes Firestore implementation of model.SubscriptionModel.
func NewUpdateModel ¶
func NewUpdateModel(c *firestore.Client) model.UpdateModel
NewUpdateModel initializes Firestore implementation of model.UpdateModel.
Types ¶
Click to show internal directories.
Click to hide internal directories.