repository

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 (f *FollowRepository) FindOneByUuid(uuid uuid.UUID) (*entity.Follow, error)

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 (p *PostRepository) FindOneByUuid(uuid uuid.UUID) (*entity.Post, error)

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 (u *UserRepository) FindOneByUuid(uuid uuid.UUID) (*entity.User, error)

func (*UserRepository) Save

func (u *UserRepository) Save(user *entity.User)

Jump to

Keyboard shortcuts

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