Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostRepository ¶
func NewPostRepository ¶
func NewPostRepository() PostRepository
func (*PostRepository) CreatePost ¶
func (pr *PostRepository) CreatePost(post *models.Post) error
func (*PostRepository) FindPostsByUserId ¶
func (pr *PostRepository) FindPostsByUserId(userId uint) (*[]models.Post, error)
type UserRepository ¶
func NewUserRepository ¶
func NewUserRepository() UserRepository
func (*UserRepository) CreateUser ¶
func (ur *UserRepository) CreateUser(user *models.User) error
func (*UserRepository) FindByEmail ¶
func (ur *UserRepository) FindByEmail(email string) (*models.User, error)
func (*UserRepository) FindUserById ¶
func (ur *UserRepository) FindUserById(id uint64) (*models.User, error)
Click to show internal directories.
Click to hide internal directories.