lane

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 {
	BoardID string
	ID      string
	ChildID string
}

AttachCommand type

func (AttachCommand) Operation

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

Operation to attach child to lane

type CreateCommand

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

CreateCommand type

func (CreateCommand) Operation

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

Operation to create lane

type DetachCommand

type DetachCommand struct {
	BoardID string
	ID      string
	ChildID string
}

DetachCommand type

func (DetachCommand) Operation

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

Operation to detach child from lane

type ListQuery

type ListQuery struct {
	ParentID string
	BoardID  string
}

ListQuery type

func (ListQuery) Operation

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

Operation to query lane 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.Lane) error) mongo.Operation

Operation to query lane

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 lane

type Repository

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

Repository for lanes

func CreateRepository

func CreateRepository(r *mongo.Repository) Repository

CreateRepository method

func (Repository) Attach

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

Attach child to lane

func (Repository) Create

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

Create lane

func (Repository) Detach

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

Detach child from lane

func (Repository) FindByID

func (r Repository) FindByID(ctx context.Context, id kernel.MemberID, visitor func(*models.Lane) error) error

FindByID method

func (Repository) FindByParent

func (r Repository) FindByParent(ctx context.Context, id kernel.MemberID, visitor func(*models.LaneListModel) error) error

FindByParent method

func (Repository) Remove

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

Remove lane

func (Repository) Update

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

Update lane

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 lane

Jump to

Keyboard shortcuts

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