boards

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapCreateBoardPrototypeToDomain

func MapCreateBoardPrototypeToDomain(board *desc.CreateBoardsRequest_BoardPrototype) models.Board

func MapDomainBoardToProto

func MapDomainBoardToProto(board models.Board) *desc.Board

func MapUpdateBoardPrototypeToUpdatedBoard

func MapUpdateBoardPrototypeToUpdatedBoard(board *desc.UpdateBoardsRequest_BoardPrototype) (models.UpdatedBoard, error)

Types

type BoardService

type BoardService interface {
	GetBoards(ctx context.Context, ids []int64) ([]models.Board, error)
	InsertBoards(ctx context.Context, boards []models.Board) ([]int64, error)
	UpdateBoards(ctx context.Context, boards []models.UpdatedBoard) error
	DeleteBoards(ctx context.Context, ids []int64) error

	GetOrder(ctx context.Context) ([]utils.Pair[int64, int32], error)
	ChangeOrder(ctx context.Context, ids []int64, places []int32) error
}

type Implementation

type Implementation struct {
	desc.UnimplementedBoardServiceServer
	// contains filtered or unexported fields
}

func New

func New(
	boardService BoardService,
	topicService TopicService,
	taskService TaskService,
) *Implementation

func (*Implementation) ChangeBoardOrder added in v0.0.2

func (*Implementation) CreateBoards

func (*Implementation) DeleteBoards

func (*Implementation) GetAllBoards added in v0.0.2

func (*Implementation) GetBoardContent added in v0.0.2

func (*Implementation) GetBoardOrder added in v0.0.2

func (*Implementation) GetBoards

func (*Implementation) UpdateBoards

type TaskService added in v0.0.2

type TaskService interface {
	GetTasks(ctx context.Context, ids []int64) ([]models.Task, error)
}

type TopicService added in v0.0.2

type TopicService interface {
	GetTopics(ctx context.Context, ids []int64) ([]models.Topic, error)
}

Jump to

Keyboard shortcuts

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