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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateModel

type CreateModel struct {
	Type        string
	Name        string
	Description string
	Layout      string
}

CreateModel type

type ListModel

type ListModel struct {
	ID          kernel.ID
	Type        string
	Name        string
	Description string
	Layout      string
}

ListModel type

type Model

type Model struct {
	ID          kernel.ID
	Type        string
	Name        string
	Description string
	Layout      string
	Children    []kernel.ID
}

Model type

type Reader

type Reader interface {
	// GetByID get by id
	GetByID(context.Context, kernel.MemberID) (*Model, error)
	// GetByBoardID gets lanes by board id
	GetByBoardID(context.Context, kernel.ID) ([]*ListModel, error)
	// GetByLaneID gets lanes by lane id
	GetByLaneID(context.Context, kernel.MemberID) ([]*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 lane
	Create(context.Context, kernel.ID, *CreateModel) (kernel.ID, error)
	// Layout lane
	Layout(context.Context, kernel.MemberID, string) error
	// Name lane
	Name(context.Context, kernel.MemberID, string) error
	// Describe lane
	Describe(context.Context, kernel.MemberID, string) error
	// Remove lane
	Remove(context.Context, kernel.MemberID) error
	// AppendChild to lane
	AppendChild(context.Context, kernel.MemberID, kernel.ID) error
	// ExcludeChild from lane
	ExcludeChild(context.Context, kernel.MemberID, kernel.ID) error
}

Writer interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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