Versions in this module Expand all Collapse all v0 v0.0.4 Nov 17, 2021 Changes in this version + func AppendQueryForComment(query *ent.CommentQuery) *ent.CommentQuery + func NewEnt() *ent.Client + func WrapEntError(entErr error) error + type CommentRepository interface + Create func(createInput *data.CommentInput, isWrittenByArticleAuthor bool) (com *ent.Comment, err error) + Delete func(id int) (err error) + FindAllParentCommentsByArticleID func(articleID int) (coms []*ent.Comment, err error) + FindAllParentCommentsByAuthorID func(authorID string) (coms []*ent.Comment, err error) + Get func(id int) (com *ent.Comment, err error) + Update func(id int, updateInput map[string]interface{}) (com *ent.Comment, err error) + func NewCommentRepository(client *ent.Client, cache cache.CommentCacheRepository, ...) CommentRepository + type LikeCommentRepository interface + Create func(createInput *data.LikeCommentInput) (like *ent.LikeComment, err error) + Delete func(id int) error + DeleteAllByCommentID func(commentID int) error + FindAllByCommentID func(commentID int) (likes []*ent.LikeComment, err error) + FindAllByUserIDAndCommentID func(authorID string, commentID int) (likes []*ent.LikeComment, err error) + func NewLikeCommentRepository(client *ent.Client, cache cache.LikeCommentCacheRepository, ...) LikeCommentRepository + type MockCommentRepository struct + func NewMockCommentRepository(ctrl *gomock.Controller) *MockCommentRepository + func (m *MockCommentRepository) Create(createInput *data.CommentInput, isWrittenByArticleAuthor bool) (*ent.Comment, error) + func (m *MockCommentRepository) Delete(id int) error + func (m *MockCommentRepository) EXPECT() *MockCommentRepositoryMockRecorder + func (m *MockCommentRepository) FindAllParentCommentsByArticleID(articleID int) ([]*ent.Comment, error) + func (m *MockCommentRepository) FindAllParentCommentsByAuthorID(authorID string) ([]*ent.Comment, error) + func (m *MockCommentRepository) Get(id int) (*ent.Comment, error) + func (m *MockCommentRepository) Update(id int, updateInput map[string]interface{}) (*ent.Comment, error) + type MockCommentRepositoryMockRecorder struct + func (mr *MockCommentRepositoryMockRecorder) Create(createInput, isWrittenByArticleAuthor interface{}) *gomock.Call + func (mr *MockCommentRepositoryMockRecorder) Delete(id interface{}) *gomock.Call + func (mr *MockCommentRepositoryMockRecorder) FindAllParentCommentsByArticleID(articleID interface{}) *gomock.Call + func (mr *MockCommentRepositoryMockRecorder) FindAllParentCommentsByAuthorID(authorID interface{}) *gomock.Call + func (mr *MockCommentRepositoryMockRecorder) Get(id interface{}) *gomock.Call + func (mr *MockCommentRepositoryMockRecorder) Update(id, updateInput interface{}) *gomock.Call + type MockLikeCommentRepository struct + func NewMockLikeCommentRepository(ctrl *gomock.Controller) *MockLikeCommentRepository + func (m *MockLikeCommentRepository) Create(createInput *data.LikeCommentInput) (*ent.LikeComment, error) + func (m *MockLikeCommentRepository) Delete(id int) error + func (m *MockLikeCommentRepository) DeleteAllByCommentID(commentID int) error + func (m *MockLikeCommentRepository) EXPECT() *MockLikeCommentRepositoryMockRecorder + func (m *MockLikeCommentRepository) FindAllByCommentID(commentID int) ([]*ent.LikeComment, error) + func (m *MockLikeCommentRepository) FindAllByUserIDAndCommentID(authorID string, commentID int) ([]*ent.LikeComment, error) + type MockLikeCommentRepositoryMockRecorder struct + func (mr *MockLikeCommentRepositoryMockRecorder) Create(createInput interface{}) *gomock.Call + func (mr *MockLikeCommentRepositoryMockRecorder) Delete(id interface{}) *gomock.Call + func (mr *MockLikeCommentRepositoryMockRecorder) DeleteAllByCommentID(commentID interface{}) *gomock.Call + func (mr *MockLikeCommentRepositoryMockRecorder) FindAllByCommentID(commentID interface{}) *gomock.Call + func (mr *MockLikeCommentRepositoryMockRecorder) FindAllByUserIDAndCommentID(authorID, commentID interface{}) *gomock.Call + type SynchronousCacheWrite bool