Documentation ¶
Index ¶
- type Article
- func (gtw *Article) AddToUser(ctx context.Context, articleID article.ID, userID user.ID) error
- func (gtw *Article) Delete(ctx context.Context, id article.ID) error
- func (gtw *Article) ExistsByUser(ctx context.Context, articleID article.ID, userID user.ID) (bool, error)
- func (gtw *Article) Find(ctx context.Context, id article.ID) (model.Article, error)
- func (gtw *Article) List(ctx context.Context, index value.Index, size value.Size, ...) ([]model.Article, error)
- func (gtw *Article) ListByUser(ctx context.Context, userID user.ID, index value.Index, size value.Size, ...) ([]model.Article, error)
- func (gtw *Article) RemoveFromUser(ctx context.Context, articleID article.ID, userID user.ID) error
- func (gtw *Article) Save(ctx context.Context, item model.Article) error
- type RDB
- type RDBClientMock
- type RDBFactory
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Article ¶
type Article struct {
// contains filtered or unexported fields
}
Article.
func (*Article) ExistsByUser ¶
func (*Article) List ¶
func (gtw *Article) List( ctx context.Context, index value.Index, size value.Size, filter ...value.Filter, ) ([]model.Article, error)
List 記事一覧を取得するメソッド.
func (*Article) ListByUser ¶
func (gtw *Article) ListByUser( ctx context.Context, userID user.ID, index value.Index, size value.Size, filter ...value.Filter, ) ([]model.Article, error)
ListByUser ユーザーに紐づく記事を取得するメソッド.
func (*Article) RemoveFromUser ¶
type RDBClientMock ¶
type RDBClientMock struct {
// contains filtered or unexported fields
}
func NewRDBClientMock ¶
func NewRDBClientMock(t *testing.T) *RDBClientMock
type RDBFactory ¶
RDBFactory RDBクライアントのファクトリ.
Click to show internal directories.
Click to hide internal directories.