repository

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 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 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)

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 (u *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