board

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 AttachCommand

type AttachCommand struct {
	ID      string
	ChildID string
}

AttachCommand type

func (AttachCommand) Operation

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

Operation to attach lane to board

type CreateCommand

type CreateCommand struct {
	Board *models.Board
}

CreateCommand type

func (CreateCommand) Operation

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

Operation to create board

type DetachCommand

type DetachCommand struct {
	ID      string
	ChildID string
}

DetachCommand type

func (DetachCommand) Operation

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

Operation to detach lane from board

type ListQuery

type ListQuery struct {
	Owner string
}

ListQuery type

func (ListQuery) Operation

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

Operation to query boards list

type OneQuery

type OneQuery struct {
	ID string
}

OneQuery type

func (OneQuery) Operation

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

Operation to query board

type RemoveCommand

type RemoveCommand struct {
	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 for boards

func CreateRepository

func CreateRepository(r *mongo.Repository) Repository

CreateRepository method

func (Repository) Attach

func (r Repository) Attach(ctx context.Context, id string, childID string) error

Attach child to board

func (Repository) Create

func (r Repository) Create(ctx context.Context, board *models.Board) error

Create board

func (Repository) Detach

func (r Repository) Detach(ctx context.Context, id string, childID string) error

Detach child from board

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

func (Repository) Remove

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

Remove board

func (Repository) Update

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

Update board

type UpdateCommand

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

UpdateCommand type

func (UpdateCommand) Operation

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

Operation to update board

Jump to

Keyboard shortcuts

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