infra

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: 15 Imported by: 0

Documentation

Overview

Package infra is a generated GoMock package.

Package infra is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var (
	CommentCreateMessageAttribute = map[string]*sns.MessageAttributeValue{
		"resource_kind": {DataType: aws.String("String"), StringValue: aws.String("comment")},
		"event_kind":    {DataType: aws.String("String"), StringValue: aws.String("create")},
	}
)

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

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

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

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

type SnsClientImpl struct {
	Sns *sns.SNS
}

func (*SnsClientImpl) PublishMessage

func (client *SnsClientImpl) PublishMessage(comment *data.CommentOutput)

Directories

Path Synopsis
Package khumu is a generated GoMock package.
Package khumu is a generated GoMock package.
Package http is a generated GoMock package.
Package http is a generated GoMock package.

Jump to

Keyboard shortcuts

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