Documentation ¶
Index ¶
- type AttachCommand
- type CreateCommand
- type DetachCommand
- type ListQuery
- type OneQuery
- type RemoveCommand
- type Repository
- func (r Repository) Attach(ctx context.Context, id string, childID string) error
- func (r Repository) Create(ctx context.Context, board *models.Board) error
- func (r Repository) Detach(ctx context.Context, id string, childID string) error
- func (r Repository) FindByID(ctx context.Context, id kernel.ID, visitor func(*models.Board) error) error
- func (r Repository) FindByOwner(ctx context.Context, owner string, visitor func(*models.BoardListModel) error) error
- func (r Repository) Remove(ctx context.Context, id string) error
- func (r Repository) Update(ctx context.Context, id string, field string, value interface{}) error
- type UpdateCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttachCommand ¶
AttachCommand type
type CreateCommand ¶
CreateCommand type
type DetachCommand ¶
DetachCommand type
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
Repository for boards
func CreateRepository ¶
func CreateRepository(r *mongo.Repository) Repository
CreateRepository method
func (Repository) FindByID ¶
func (r Repository) FindByID(ctx context.Context, id kernel.ID, visitor func(*models.Board) error) error
FindByID method
func (Repository) FindByOwner ¶
func (r Repository) FindByOwner(ctx context.Context, owner string, visitor func(*models.BoardListModel) error) error
FindByOwner method
Click to show internal directories.
Click to hide internal directories.