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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CardModel

type CardModel struct {
	ID          kernel.ID
	Name        string
	Description string
}

CardModel type

type CreateModel

type CreateModel struct {
	Owner       string
	Name        string
	Description string
	Shared      bool
	Layout      string
	State       string
}

CreateModel type

type LaneModel

type LaneModel struct {
	ID          kernel.ID
	Type        string
	Name        string
	Description string
	Layout      string
	Lanes       []LaneModel
	Cards       []CardModel
}

LaneModel type

type ListModel

type ListModel struct {
	ID          kernel.ID
	Owner       string
	Name        string
	Description string
	Shared      bool
	Layout      string
	State       string
}

ListModel type

type Model

type Model struct {
	ID          kernel.ID
	Owner       string
	Name        string
	Description string
	Shared      bool
	Layout      string
	State       string
	Lanes       []LaneModel
}

Model type

type Reader

type Reader interface {
	// GetByID get by id
	GetByID(context.Context, kernel.ID) (*Model, error)
	// GetByOwner boards
	GetByOwner(context.Context, string) ([]*ListModel, error)
}

Reader interface

type Service

type Service interface {
	Reader
	Writer
}

Service interface

func CreateService

func CreateService(s tx.Service, r persistence.Repository, l logger.Logger) Service

CreateService instance

type Writer

type Writer interface {
	// Create board
	Create(context.Context, *CreateModel) (kernel.ID, error)
	// Layout board
	Layout(context.Context, kernel.ID, string) error
	// State board
	State(context.Context, kernel.ID, string) error
	// Name board
	Name(context.Context, kernel.ID, string) error
	// Describe board
	Describe(context.Context, kernel.ID, string) error
	// Share board
	Share(context.Context, kernel.ID, bool) error
	// Remove board by id
	Remove(context.Context, kernel.ID) error
	// AppendLane to board
	AppendLane(context.Context, kernel.MemberID) error
	// ExcludeLane from board
	ExcludeLane(context.Context, kernel.MemberID) error
}

Writer interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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