Documentation ¶
Index ¶
- type FollowRepository
- type NotificationRepository
- func (n *NotificationRepository) AcknowledgeNotifications(userID uint, ack *model.NotificationAcknowledgement) *gorm.DB
- func (n *NotificationRepository) Create(notification *entity.Notification) *gorm.DB
- func (n *NotificationRepository) FindByUser(user *entity.User, limit int) []*entity.Notification
- func (n *NotificationRepository) FindFollowNotification(user *entity.User, following *entity.User) (*entity.Notification, error)
- func (n *NotificationRepository) FindPostLikeNotification(user *entity.User, postUser *entity.User, link string) (*entity.Notification, error)
- type PostRepository
- type UserRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FollowRepository ¶ added in v0.1.21
type FollowRepository struct {
// contains filtered or unexported fields
}
func CreateFollowRepository ¶ added in v0.1.21
func CreateFollowRepository(conn *gorm.DB) *FollowRepository
func (*FollowRepository) Create ¶ added in v0.1.21
func (f *FollowRepository) Create(entity *entity.Follow)
func (*FollowRepository) FindOneByUuid ¶ added in v0.1.21
func (*FollowRepository) Save ¶ added in v0.1.21
func (f *FollowRepository) Save(follow *entity.Follow)
type NotificationRepository ¶
type NotificationRepository struct {
// contains filtered or unexported fields
}
func CreateNotificationRepository ¶
func CreateNotificationRepository(conn *gorm.DB) *NotificationRepository
func (*NotificationRepository) AcknowledgeNotifications ¶ added in v0.1.12
func (n *NotificationRepository) AcknowledgeNotifications(userID uint, ack *model.NotificationAcknowledgement) *gorm.DB
func (*NotificationRepository) Create ¶
func (n *NotificationRepository) Create(notification *entity.Notification) *gorm.DB
func (*NotificationRepository) FindByUser ¶
func (n *NotificationRepository) FindByUser(user *entity.User, limit int) []*entity.Notification
func (*NotificationRepository) FindFollowNotification ¶ added in v0.1.10
func (n *NotificationRepository) FindFollowNotification(user *entity.User, following *entity.User) (*entity.Notification, error)
func (*NotificationRepository) FindPostLikeNotification ¶ added in v0.1.22
func (n *NotificationRepository) FindPostLikeNotification(user *entity.User, postUser *entity.User, link string) (*entity.Notification, error)
type PostRepository ¶ added in v0.1.18
type PostRepository struct {
// contains filtered or unexported fields
}
func CreatePostRepository ¶ added in v0.1.18
func CreatePostRepository(conn *gorm.DB) *PostRepository
func (*PostRepository) Create ¶ added in v0.1.18
func (p *PostRepository) Create(post *entity.Post)
func (*PostRepository) FindOneByUuid ¶ added in v0.1.18
func (*PostRepository) Save ¶ added in v0.1.18
func (p *PostRepository) Save(post *entity.Post)
type UserRepository ¶
type UserRepository struct {
// contains filtered or unexported fields
}
func CreateUserRepository ¶
func CreateUserRepository(conn *gorm.DB) *UserRepository
func (*UserRepository) Create ¶
func (u *UserRepository) Create(user *entity.User)
func (*UserRepository) FindOneByUuid ¶
func (*UserRepository) Save ¶
func (u *UserRepository) Save(user *entity.User)
Click to show internal directories.
Click to hide internal directories.