Documentation ¶
Index ¶
- func PropagatePostOnCommentDeleted(c middleware.Context, postID, commentID bson.ObjectId)
- func PropagatePostOnCreation(c middleware.Context, post *models.Post)
- func PropagatePostOnLike(c middleware.Context, postID bson.ObjectId, liked bool)
- func PropagatePostOnNewComment(c middleware.Context, postID, commentID bson.ObjectId)
- func PropagatePostOnPrivacyChange(c middleware.Context, post *models.Post)
- func PropagatePostOnUserDeleted(c middleware.Context, userID bson.ObjectId)
- func PropagatePostsOnDeletion(c middleware.Context, postID bson.ObjectId)
- func PropagatePostsOnUserFollow(c middleware.Context, userID bson.ObjectId)
- func PropagatePostsOnUserUnfollow(c middleware.Context, userID bson.ObjectId)
- func PropagateSinglePostOnCommentDeleted(conn *services.Connection, ts *services.TaskService, ...) error
- func PropagateSinglePostOnCreation(conn *services.Connection, ts *services.TaskService, p *models.Post, ...) error
- func PropagateSinglePostOnNewComment(conn *services.Connection, ts *services.TaskService, ...) error
- func PropagateSinglePostOnUserFollow(conn *services.Connection, ts *services.TaskService, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PropagatePostOnCommentDeleted ¶
func PropagatePostOnCommentDeleted(c middleware.Context, postID, commentID bson.ObjectId)
PropagatePostOnNewComment deletes a reference to the new comment on all user timelines
func PropagatePostOnCreation ¶
func PropagatePostOnCreation(c middleware.Context, post *models.Post)
PropagatePostOnCreation propagates the post to all timelines when a new post is created.
func PropagatePostOnLike ¶
func PropagatePostOnLike(c middleware.Context, postID bson.ObjectId, liked bool)
PropagatePostOnLike sets the new like value for the user's timeline
func PropagatePostOnNewComment ¶
func PropagatePostOnNewComment(c middleware.Context, postID, commentID bson.ObjectId)
PropagatePostOnNewComment adds a reference to the new comment on all user timelines
func PropagatePostOnPrivacyChange ¶
func PropagatePostOnPrivacyChange(c middleware.Context, post *models.Post)
PropagatePostOnPrivacyChange propagates the privacy changes across all timelines, removing and adding the post according to the new privacy settings.
func PropagatePostOnUserDeleted ¶
func PropagatePostOnUserDeleted(c middleware.Context, userID bson.ObjectId)
PropagatePostOnUserDeleted erases all posts owned by the deleted user from all timelines
func PropagatePostsOnDeletion ¶
func PropagatePostsOnDeletion(c middleware.Context, postID bson.ObjectId)
PropagatePostsOnDeletion erases a deleted post from all timelines
func PropagatePostsOnUserFollow ¶
func PropagatePostsOnUserFollow(c middleware.Context, userID bson.ObjectId)
PropagatePostsOnUserFollow propagates the posts to the timeline when a new user is followed
func PropagatePostsOnUserUnfollow ¶
func PropagatePostsOnUserUnfollow(c middleware.Context, userID bson.ObjectId)
PropagatePostsOnUserFollow propagates the posts to the timeline when a new user is followed
func PropagateSinglePostOnCommentDeleted ¶
func PropagateSinglePostOnCommentDeleted(conn *services.Connection, ts *services.TaskService, c, tID, task, op bson.ObjectId) error
PropagateSinglePostOnCommentDeleted removes a reference of the comment on a timeline
func PropagateSinglePostOnCreation ¶
func PropagateSinglePostOnCreation(conn *services.Connection, ts *services.TaskService, p *models.Post, u, task, op bson.ObjectId) error
PropagateSinglePostOnCreation propagates a post to a certain timeline because it failed before
func PropagateSinglePostOnNewComment ¶
func PropagateSinglePostOnNewComment(conn *services.Connection, ts *services.TaskService, c, tID, task, op bson.ObjectId) error
PropagateSinglePostOnNewComment adds a reference to the new comment on a timeline
func PropagateSinglePostOnUserFollow ¶
func PropagateSinglePostOnUserFollow(conn *services.Connection, ts *services.TaskService, user, post, task, op bson.ObjectId) error
PropagateSinglePostOnUserFollow propagates a single post to the timeline when a new user is followed
Types ¶
This section is empty.