cache

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package cache is a generated GoMock package.

Index

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

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

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.

Jump to

Keyboard shortcuts

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