service

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package service implements the business logic of the application.

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(db example.DB) *Service

func (*Service) CreateTask

func (s *Service) CreateTask(ctx context.Context, title string) (*example.Task, error)

func (*Service) DeleteTask

func (s *Service) DeleteTask(ctx context.Context, id int64) error

func (*Service) GenerateError

func (s *Service) GenerateError(ctx context.Context) error

func (*Service) ListTasks

func (s *Service) ListTasks(ctx context.Context) ([]*example.Task, error)

Jump to

Keyboard shortcuts

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