domain

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func New

func New(log *slog.Logger, tx TransactionManager) *Service

func (*Service) GetList

func (svc *Service) GetList(ctx context.Context, id int32) hypertext.ListData

func (*Service) Lists

func (svc *Service) Lists(ctx context.Context) []database.List

func (*Service) UpdateList

func (svc *Service) UpdateList(ctx context.Context, listID int32, form hypertext.UpdateListForm) hypertext.ListData

type TransactionManager

type TransactionManager interface {
	ReadOnly(ctx context.Context, f database.ReadOnlyFunc) error
	UpdatePriorityList(ctx context.Context, f database.TaskPriorityUpdateFunc) error
}

Directories

Path Synopsis
internal
fake
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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