Documentation ¶
Overview ¶
Package infra is a generated GoMock package.
Package infra is a generated GoMock package.
Index ¶
- Variables
- type MockRedisAdapter
- func (m *MockRedisAdapter) EXPECT() *MockRedisAdapterMockRecorder
- func (m *MockRedisAdapter) FindAllByCommentID(commentID int) (data.LikeCommentEntities, error)
- func (m *MockRedisAdapter) FindAllParentCommentsByArticleID(articleID int) (data.CommentEntities, error)
- func (m *MockRedisAdapter) SetCommentsByArticleID(articleID int, coms data.CommentEntities)
- func (m *MockRedisAdapter) SetLikesByCommentID(commentID int, likes data.LikeCommentEntities)
- type MockRedisAdapterMockRecorder
- func (mr *MockRedisAdapterMockRecorder) FindAllByCommentID(commentID interface{}) *gomock.Call
- func (mr *MockRedisAdapterMockRecorder) FindAllParentCommentsByArticleID(articleID interface{}) *gomock.Call
- func (mr *MockRedisAdapterMockRecorder) SetCommentsByArticleID(articleID, coms interface{}) *gomock.Call
- func (mr *MockRedisAdapterMockRecorder) SetLikesByCommentID(commentID, likes interface{}) *gomock.Call
- type MockSnsClient
- type MockSnsClientMockRecorder
- type RedisAdapter
- type RedisAdapterImpl
- func (a *RedisAdapterImpl) FindAllByCommentID(commentID int) (data.LikeCommentEntities, error)
- func (a *RedisAdapterImpl) FindAllParentCommentsByArticleID(articleID int) (data.CommentEntities, error)
- func (a *RedisAdapterImpl) SetCommentsByArticleID(articleID int, coms data.CommentEntities)
- func (a *RedisAdapterImpl) SetLikesByCommentID(commentID int, likes data.LikeCommentEntities)
- type SnsClient
- type SnsClientImpl
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type MockRedisAdapter ¶
type MockRedisAdapter struct {
// contains filtered or unexported fields
}
MockRedisAdapter is a mock of RedisAdapter interface.
func NewMockRedisAdapter ¶
func NewMockRedisAdapter(ctrl *gomock.Controller) *MockRedisAdapter
NewMockRedisAdapter creates a new mock instance.
func (*MockRedisAdapter) EXPECT ¶
func (m *MockRedisAdapter) EXPECT() *MockRedisAdapterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRedisAdapter) FindAllByCommentID ¶
func (m *MockRedisAdapter) FindAllByCommentID(commentID int) (data.LikeCommentEntities, error)
FindAllByCommentID mocks base method.
func (*MockRedisAdapter) FindAllParentCommentsByArticleID ¶
func (m *MockRedisAdapter) FindAllParentCommentsByArticleID(articleID int) (data.CommentEntities, error)
FindAllParentCommentsByArticleID mocks base method.
func (*MockRedisAdapter) SetCommentsByArticleID ¶
func (m *MockRedisAdapter) SetCommentsByArticleID(articleID int, coms data.CommentEntities)
SetCommentsByArticleID mocks base method.
func (*MockRedisAdapter) SetLikesByCommentID ¶
func (m *MockRedisAdapter) SetLikesByCommentID(commentID int, likes data.LikeCommentEntities)
SetLikesByCommentID mocks base method.
type MockRedisAdapterMockRecorder ¶
type MockRedisAdapterMockRecorder struct {
// contains filtered or unexported fields
}
MockRedisAdapterMockRecorder is the mock recorder for MockRedisAdapter.
func (*MockRedisAdapterMockRecorder) FindAllByCommentID ¶
func (mr *MockRedisAdapterMockRecorder) FindAllByCommentID(commentID interface{}) *gomock.Call
FindAllByCommentID indicates an expected call of FindAllByCommentID.
func (*MockRedisAdapterMockRecorder) FindAllParentCommentsByArticleID ¶
func (mr *MockRedisAdapterMockRecorder) FindAllParentCommentsByArticleID(articleID interface{}) *gomock.Call
FindAllParentCommentsByArticleID indicates an expected call of FindAllParentCommentsByArticleID.
func (*MockRedisAdapterMockRecorder) SetCommentsByArticleID ¶
func (mr *MockRedisAdapterMockRecorder) SetCommentsByArticleID(articleID, coms interface{}) *gomock.Call
SetCommentsByArticleID indicates an expected call of SetCommentsByArticleID.
func (*MockRedisAdapterMockRecorder) SetLikesByCommentID ¶
func (mr *MockRedisAdapterMockRecorder) SetLikesByCommentID(commentID, likes interface{}) *gomock.Call
SetLikesByCommentID indicates an expected call of SetLikesByCommentID.
type MockSnsClient ¶
type MockSnsClient struct {
// contains filtered or unexported fields
}
MockSnsClient is a mock of SnsClient interface.
func NewMockSnsClient ¶
func NewMockSnsClient(ctrl *gomock.Controller) *MockSnsClient
NewMockSnsClient creates a new mock instance.
func (*MockSnsClient) EXPECT ¶
func (m *MockSnsClient) EXPECT() *MockSnsClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSnsClient) PublishMessage ¶
func (m *MockSnsClient) PublishMessage(comment *data.CommentOutput)
PublishMessage mocks base method.
type MockSnsClientMockRecorder ¶
type MockSnsClientMockRecorder struct {
// contains filtered or unexported fields
}
MockSnsClientMockRecorder is the mock recorder for MockSnsClient.
func (*MockSnsClientMockRecorder) PublishMessage ¶
func (mr *MockSnsClientMockRecorder) PublishMessage(comment interface{}) *gomock.Call
PublishMessage indicates an expected call of PublishMessage.
type RedisAdapter ¶
type RedisAdapter interface { cache.CommentCacheRepository cache.LikeCommentCacheRepository }
func NewRedisAdapter ¶
func NewRedisAdapter() RedisAdapter
type RedisAdapterImpl ¶
type RedisAdapterImpl struct {
// contains filtered or unexported fields
}
func (*RedisAdapterImpl) FindAllByCommentID ¶
func (a *RedisAdapterImpl) FindAllByCommentID(commentID int) (data.LikeCommentEntities, error)
func (*RedisAdapterImpl) FindAllParentCommentsByArticleID ¶
func (a *RedisAdapterImpl) FindAllParentCommentsByArticleID(articleID int) (data.CommentEntities, error)
func (*RedisAdapterImpl) SetCommentsByArticleID ¶
func (a *RedisAdapterImpl) SetCommentsByArticleID(articleID int, coms data.CommentEntities)
func (*RedisAdapterImpl) SetLikesByCommentID ¶
func (a *RedisAdapterImpl) SetLikesByCommentID(commentID int, likes data.LikeCommentEntities)
type SnsClient ¶
type SnsClient interface {
PublishMessage(comment *data.CommentOutput)
}
func NewSnsClient ¶
func NewSnsClient() SnsClient
type SnsClientImpl ¶
func (*SnsClientImpl) PublishMessage ¶
func (client *SnsClientImpl) PublishMessage(comment *data.CommentOutput)