topics

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTaskDoesNotExist = errors.New("task does not exist")
)

Functions

This section is empty.

Types

type TopicService

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

func NewTopicService

func NewTopicService(
	topicStorage topicStorage,
	taskStorage taskStorage,
) *TopicService

func (*TopicService) DeleteTopics

func (s *TopicService) DeleteTopics(
	ctx context.Context,
	ids []int64,
) error

func (*TopicService) GetTopics

func (s *TopicService) GetTopics(
	ctx context.Context,
	ids []int64,
) ([]models.Topic, error)

func (*TopicService) InsertTopics

func (s *TopicService) InsertTopics(
	ctx context.Context,
	topics []models.Topic,
) ([]int64, error)

func (*TopicService) UpdateTopics

func (s *TopicService) UpdateTopics(
	ctx context.Context,
	topics []models.UpdatedTopic,
) error

Jump to

Keyboard shortcuts

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