like

package
v0.0.0-...-cf3c4c9 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LikeRepository

type LikeRepository interface {
	Create(*like.Like) rest_error.RestErr
	GetByUserAndPost(string, uint) (*like.Like, rest_error.RestErr)
	Delete(*like.Like) rest_error.RestErr
	GetNumberOfLikes(uint) (int64, rest_error.RestErr)
}

func NewLikeRepository

func NewLikeRepository(databaseClient datasources.DatabaseClient) LikeRepository

type LikeRepositoryMock

type LikeRepositoryMock struct {
	mock.Mock
}

func (*LikeRepositoryMock) Create

func (l *LikeRepositoryMock) Create(like *like.Like) rest_error.RestErr

func (*LikeRepositoryMock) Delete

func (*LikeRepositoryMock) GetByUserAndPost

func (l *LikeRepositoryMock) GetByUserAndPost(userEmail string, postId uint) (*like.Like, rest_error.RestErr)

func (*LikeRepositoryMock) GetNumberOfLikes

func (l *LikeRepositoryMock) GetNumberOfLikes(u uint) (int64, rest_error.RestErr)

Jump to

Keyboard shortcuts

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