todo

package
v0.0.0-...-7b751a3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSubscriptionService

func NewSubscriptionService() *subscriptionService

NewSubscriptionService creates a new instance of the SubscriptionService.

Types

type OverDueService

type OverDueService interface {
	Start()
	Stop()
}

func NewOverDueService

func NewOverDueService(subSvc SubscriptionService, todoRepo TodoRepository) OverDueService

NewOverDueService creates a new instance of the OverDueService.

type SubscriptionService

type SubscriptionService interface {
	Subscribe(id uuid.UUID) chan shared.Todo
	Unsubscribe(id uuid.UUID)
	Publish(todo shared.Todo)
	Stop()
}

type TodoRepository

type TodoRepository interface {
	storage.GenericRepository[shared.Todo]
}

TodoRepository defines the interface for todo-related database operations.

func NewTodoRepository

func NewTodoRepository() TodoRepository

NewTodoRepository creates a new TodoRepository instance using the shared.Todo type.

Jump to

Keyboard shortcuts

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