service

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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