Help us shape the future of Go! Take the 2026 Go Developer Survey

domain

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 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