Documentation
¶
Index ¶
- type ConsumerService
- func (c *ConsumerService) CreatePostLikeNotification(postLike *model.PostLike)
- func (c *ConsumerService) UpdateProfilePic(userUuid uuid.UUID, s3Key string)
- func (c *ConsumerService) UpsertFollow(followModel *model.Follow)
- func (c *ConsumerService) UpsertPost(postModel *model.Post)
- func (c *ConsumerService) UpsertReply(replyModel *model.Reply)
- func (c *ConsumerService) UpsertUser(userModel *model.User)
- type FollowService
- type NotificationService
- func (n *NotificationService) AcknowledgeNotifications(userUuid uuid.UUID, ack *model.NotificationAcknowledgement) error
- func (n *NotificationService) CreateFollowNotification(followModel *model.Follow)
- func (n *NotificationService) CreatePostLikeNotification(postLikeModel *model.PostLike)
- func (n *NotificationService) CreateReplyNotification(replyModel *model.Reply)
- func (n *NotificationService) GetNotifications(userUuid uuid.UUID, limit int) ([]*model.Notification, error)
- type PostService
- type TestService
- func (t *TestService) AcknowledgeNotifications(userUuid uuid.UUID, ack *model.NotificationAcknowledgement) error
- func (t *TestService) CreateFollowNotification(followModel *model.Follow)
- func (t *TestService) CreatePostLikeNotification(postLikeModel *model.PostLike)
- func (t *TestService) CreateReplyNotification(replyModel *model.Reply)
- func (t *TestService) GetNotifications(userUuid uuid.UUID, limit int) ([]*model.Notification, error)
- func (t *TestService) UpsertPost(postModel *model.Post)
- func (t *TestService) UpsertReply(replyModel *model.Reply) bool
- func (t *TestService) UpsertUser(userModel *model.User)
- type UserService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsumerService ¶
type ConsumerService struct {
// contains filtered or unexported fields
}
func CreateConsumerService ¶
func CreateConsumerService() *ConsumerService
func (*ConsumerService) CreatePostLikeNotification ¶
func (c *ConsumerService) CreatePostLikeNotification(postLike *model.PostLike)
func (*ConsumerService) UpdateProfilePic ¶
func (c *ConsumerService) UpdateProfilePic(userUuid uuid.UUID, s3Key string)
func (*ConsumerService) UpsertFollow ¶
func (c *ConsumerService) UpsertFollow(followModel *model.Follow)
func (*ConsumerService) UpsertPost ¶
func (c *ConsumerService) UpsertPost(postModel *model.Post)
func (*ConsumerService) UpsertReply ¶ added in v0.1.3
func (c *ConsumerService) UpsertReply(replyModel *model.Reply)
func (*ConsumerService) UpsertUser ¶
func (c *ConsumerService) UpsertUser(userModel *model.User)
type FollowService ¶
type FollowService struct {
// contains filtered or unexported fields
}
func CreateFollowService ¶
func CreateFollowService() *FollowService
func (*FollowService) UpsertFollow ¶
func (f *FollowService) UpsertFollow(followModel *model.Follow) bool
type NotificationService ¶
type NotificationService struct {
// contains filtered or unexported fields
}
func CreateNotificationService ¶
func CreateNotificationService() *NotificationService
func CreateTestNotificationService ¶ added in v0.1.11
func CreateTestNotificationService() *NotificationService
func (*NotificationService) AcknowledgeNotifications ¶
func (n *NotificationService) AcknowledgeNotifications(userUuid uuid.UUID, ack *model.NotificationAcknowledgement) error
func (*NotificationService) CreateFollowNotification ¶
func (n *NotificationService) CreateFollowNotification(followModel *model.Follow)
func (*NotificationService) CreatePostLikeNotification ¶
func (n *NotificationService) CreatePostLikeNotification(postLikeModel *model.PostLike)
func (*NotificationService) CreateReplyNotification ¶ added in v0.1.3
func (n *NotificationService) CreateReplyNotification(replyModel *model.Reply)
func (*NotificationService) GetNotifications ¶
func (n *NotificationService) GetNotifications(userUuid uuid.UUID, limit int) ([]*model.Notification, error)
type PostService ¶
type PostService struct {
// contains filtered or unexported fields
}
func CreatePostService ¶
func CreatePostService() *PostService
func CreateTestPostService ¶ added in v0.1.11
func CreateTestPostService() *PostService
func (*PostService) UpsertPost ¶
func (p *PostService) UpsertPost(postModel *model.Post)
func (*PostService) UpsertReply ¶ added in v0.1.3
func (p *PostService) UpsertReply(replyModel *model.Reply) bool
type TestService ¶ added in v0.1.11
type TestService struct {
// contains filtered or unexported fields
}
func CreateTestService ¶ added in v0.1.11
func CreateTestService() *TestService
func (*TestService) AcknowledgeNotifications ¶ added in v0.1.11
func (t *TestService) AcknowledgeNotifications(userUuid uuid.UUID, ack *model.NotificationAcknowledgement) error
func (*TestService) CreateFollowNotification ¶ added in v0.1.11
func (t *TestService) CreateFollowNotification(followModel *model.Follow)
func (*TestService) CreatePostLikeNotification ¶ added in v0.1.11
func (t *TestService) CreatePostLikeNotification(postLikeModel *model.PostLike)
func (*TestService) CreateReplyNotification ¶ added in v0.1.11
func (t *TestService) CreateReplyNotification(replyModel *model.Reply)
func (*TestService) GetNotifications ¶ added in v0.1.11
func (t *TestService) GetNotifications(userUuid uuid.UUID, limit int) ([]*model.Notification, error)
func (*TestService) UpsertPost ¶ added in v0.1.11
func (t *TestService) UpsertPost(postModel *model.Post)
func (*TestService) UpsertReply ¶ added in v0.1.11
func (t *TestService) UpsertReply(replyModel *model.Reply) bool
func (*TestService) UpsertUser ¶ added in v0.1.11
func (t *TestService) UpsertUser(userModel *model.User)
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
func CreateTestUserService ¶ added in v0.1.11
func CreateTestUserService() *UserService
func CreateUserService ¶
func CreateUserService() *UserService
func (*UserService) UpdateProfilePic ¶
func (u *UserService) UpdateProfilePic(userUuid uuid.UUID, s3Key string)
func (*UserService) UpsertUser ¶
func (u *UserService) UpsertUser(userModel *model.User)
Click to show internal directories.
Click to hide internal directories.