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: 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 {
	Name        string
	Description string
}

CreateModel type

type Model

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

Model type

type Reader

type Reader interface {
	// GetByID gets card by id
	GetByID(context.Context, kernel.MemberID) (*Model, error)
	// GetByLaneID gets cards by lane id
	GetByLaneID(context.Context, kernel.MemberID) ([]*Model, 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 card
	Create(context.Context, kernel.ID, *CreateModel) (kernel.ID, error)
	// Name card
	Name(context.Context, kernel.MemberID, string) error
	// Describe card
	Describe(context.Context, kernel.MemberID, string) error
	// Remove card
	Remove(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