Documentation ¶
Overview ¶
Package cache is a generated GoMock package.
Index ¶
- type CommentCacheRepository
- type LikeCommentCacheRepository
- type MockCommentCacheRepository
- func (m *MockCommentCacheRepository) EXPECT() *MockCommentCacheRepositoryMockRecorder
- func (m *MockCommentCacheRepository) FindAllParentCommentsByArticleID(articleID int) (data.CommentEntities, error)
- func (m *MockCommentCacheRepository) SetCommentsByArticleID(articleID int, coms data.CommentEntities)
- type MockCommentCacheRepositoryMockRecorder
- type MockLikeCommentCacheRepository
- func (m *MockLikeCommentCacheRepository) EXPECT() *MockLikeCommentCacheRepositoryMockRecorder
- func (m *MockLikeCommentCacheRepository) FindAllByCommentID(commentID int) (data.LikeCommentEntities, error)
- func (m *MockLikeCommentCacheRepository) SetLikesByCommentID(commentID int, likes data.LikeCommentEntities)
- type MockLikeCommentCacheRepositoryMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommentCacheRepository ¶
type CommentCacheRepository interface { FindAllParentCommentsByArticleID(articleID int) (coms data.CommentEntities, err error) SetCommentsByArticleID(articleID int, coms data.CommentEntities) }
type LikeCommentCacheRepository ¶
type LikeCommentCacheRepository interface { FindAllByCommentID(commentID int) (likes data.LikeCommentEntities, err error) SetLikesByCommentID(commentID int, likes data.LikeCommentEntities) }
type MockCommentCacheRepository ¶
type MockCommentCacheRepository struct {
// contains filtered or unexported fields
}
MockCommentCacheRepository is a mock of CommentCacheRepository interface.
func NewMockCommentCacheRepository ¶
func NewMockCommentCacheRepository(ctrl *gomock.Controller) *MockCommentCacheRepository
NewMockCommentCacheRepository creates a new mock instance.
func (*MockCommentCacheRepository) EXPECT ¶
func (m *MockCommentCacheRepository) EXPECT() *MockCommentCacheRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCommentCacheRepository) FindAllParentCommentsByArticleID ¶
func (m *MockCommentCacheRepository) FindAllParentCommentsByArticleID(articleID int) (data.CommentEntities, error)
FindAllParentCommentsByArticleID mocks base method.
func (*MockCommentCacheRepository) SetCommentsByArticleID ¶
func (m *MockCommentCacheRepository) SetCommentsByArticleID(articleID int, coms data.CommentEntities)
SetCommentsByArticleID mocks base method.
type MockCommentCacheRepositoryMockRecorder ¶
type MockCommentCacheRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockCommentCacheRepositoryMockRecorder is the mock recorder for MockCommentCacheRepository.
func (*MockCommentCacheRepositoryMockRecorder) FindAllParentCommentsByArticleID ¶
func (mr *MockCommentCacheRepositoryMockRecorder) FindAllParentCommentsByArticleID(articleID interface{}) *gomock.Call
FindAllParentCommentsByArticleID indicates an expected call of FindAllParentCommentsByArticleID.
func (*MockCommentCacheRepositoryMockRecorder) SetCommentsByArticleID ¶
func (mr *MockCommentCacheRepositoryMockRecorder) SetCommentsByArticleID(articleID, coms interface{}) *gomock.Call
SetCommentsByArticleID indicates an expected call of SetCommentsByArticleID.
type MockLikeCommentCacheRepository ¶
type MockLikeCommentCacheRepository struct {
// contains filtered or unexported fields
}
MockLikeCommentCacheRepository is a mock of LikeCommentCacheRepository interface.
func NewMockLikeCommentCacheRepository ¶
func NewMockLikeCommentCacheRepository(ctrl *gomock.Controller) *MockLikeCommentCacheRepository
NewMockLikeCommentCacheRepository creates a new mock instance.
func (*MockLikeCommentCacheRepository) EXPECT ¶
func (m *MockLikeCommentCacheRepository) EXPECT() *MockLikeCommentCacheRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLikeCommentCacheRepository) FindAllByCommentID ¶
func (m *MockLikeCommentCacheRepository) FindAllByCommentID(commentID int) (data.LikeCommentEntities, error)
FindAllByCommentID mocks base method.
func (*MockLikeCommentCacheRepository) SetLikesByCommentID ¶
func (m *MockLikeCommentCacheRepository) SetLikesByCommentID(commentID int, likes data.LikeCommentEntities)
SetLikesByCommentID mocks base method.
type MockLikeCommentCacheRepositoryMockRecorder ¶
type MockLikeCommentCacheRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockLikeCommentCacheRepositoryMockRecorder is the mock recorder for MockLikeCommentCacheRepository.
func (*MockLikeCommentCacheRepositoryMockRecorder) FindAllByCommentID ¶
func (mr *MockLikeCommentCacheRepositoryMockRecorder) FindAllByCommentID(commentID interface{}) *gomock.Call
FindAllByCommentID indicates an expected call of FindAllByCommentID.
func (*MockLikeCommentCacheRepositoryMockRecorder) SetLikesByCommentID ¶
func (mr *MockLikeCommentCacheRepositoryMockRecorder) SetLikesByCommentID(commentID, likes interface{}) *gomock.Call
SetLikesByCommentID indicates an expected call of SetLikesByCommentID.