Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comment ¶
type CommentRepo ¶
type CommentRepo interface { SaveAuthor(ctx context.Context, author *Author) error GetAuthorByID(ctx context.Context, id string) (*Author, error) GetAuthorByUserID(ctx context.Context, userID string) (*Author, error) GetCommentsAndRepliesRecursively(ctx context.Context, subjectID string) ([]*Comment, error) }
type ListCommentsUseCase ¶
type ListCommentsUseCase struct {
// contains filtered or unexported fields
}
func NewListCommentsUseCase ¶
func NewListCommentsUseCase(commentRepo CommentRepo) *ListCommentsUseCase
type SaveAuthorInput ¶
type SaveAuthorUseCase ¶
type SaveAuthorUseCase struct {
// contains filtered or unexported fields
}
func NewSaveAuthorUseCase ¶
func NewSaveAuthorUseCase(commentRepo CommentRepo, txManager shared.TransactionManager, idGen shared.IDGenerator) *SaveAuthorUseCase
func (*SaveAuthorUseCase) Run ¶
func (u *SaveAuthorUseCase) Run(ctx context.Context, input SaveAuthorInput) (author *Author, err error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.