Documentation ¶
Index ¶
- type CreateCommand
- type ListQuery
- type OneQuery
- type RemoveCommand
- type Repository
- func (r Repository) Create(ctx context.Context, boardID string, card *models.Card) error
- func (r Repository) FindByID(ctx context.Context, id kernel.MemberID, visitor func(*models.Card) error) error
- func (r Repository) FindByParent(ctx context.Context, id kernel.MemberID, visitor func(*models.Card) error) error
- func (r Repository) Remove(ctx context.Context, boardID string, id string) error
- func (r Repository) Update(ctx context.Context, boardID string, id string, field string, ...) error
- type UpdateCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateCommand ¶
CreateCommand type
type RemoveCommand ¶
RemoveCommand type
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
Repository type
func CreateRepository ¶
func CreateRepository(r *mongo.Repository) Repository
CreateRepository method
func (Repository) FindByID ¶
func (r Repository) FindByID(ctx context.Context, id kernel.MemberID, visitor func(*models.Card) error) error
FindByID method
func (Repository) FindByParent ¶
func (r Repository) FindByParent(ctx context.Context, id kernel.MemberID, visitor func(*models.Card) error) error
FindByParent method
Click to show internal directories.
Click to hide internal directories.