card

package
v0.0.0-...-3f93e99 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateCommand

type CreateCommand struct {
	BoardID string
	Card    *models.Card
}

CreateCommand type

func (CreateCommand) Operation

func (command CreateCommand) Operation(ctx context.Context) mongo.Operation

Operation to create card

type ListQuery

type ListQuery struct {
	LaneID  string
	BoardID string
}

ListQuery type

func (ListQuery) Operation

func (query ListQuery) Operation(ctx context.Context, visitor func(*models.Card) error) mongo.Operation

Operation to query card list

type OneQuery

type OneQuery struct {
	ID      string
	BoardID string
}

OneQuery type

func (OneQuery) Operation

func (query OneQuery) Operation(ctx context.Context, visitor func(*models.Card) error) mongo.Operation

Operation to query card

type RemoveCommand

type RemoveCommand struct {
	BoardID string
	ID      string
}

RemoveCommand type

func (RemoveCommand) Operation

func (command RemoveCommand) Operation(ctx context.Context) mongo.Operation

Operation to remove card

type Repository

type Repository struct {
	// contains filtered or unexported fields
}

Repository type

func CreateRepository

func CreateRepository(r *mongo.Repository) Repository

CreateRepository method

func (Repository) Create

func (r Repository) Create(ctx context.Context, boardID string, card *models.Card) error

Create card

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

func (Repository) Remove

func (r Repository) Remove(ctx context.Context, boardID string, id string) error

Remove card

func (Repository) Update

func (r Repository) Update(ctx context.Context, boardID string, id string, field string, value interface{}) error

Update card

type UpdateCommand

type UpdateCommand struct {
	BoardID string
	ID      string
	Field   string
	Value   interface{}
}

UpdateCommand type

func (UpdateCommand) Operation

func (command UpdateCommand) Operation(ctx context.Context) mongo.Operation

Operation to update card

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL