Documentation
¶
Index ¶
- Variables
- type TopicService
- func (s *TopicService) DeleteTopics(ctx context.Context, ids []int64) error
- func (s *TopicService) GetTopics(ctx context.Context, ids []int64) ([]models.Topic, error)
- func (s *TopicService) InsertTopics(ctx context.Context, topics []models.Topic) ([]int64, error)
- func (s *TopicService) UpdateTopics(ctx context.Context, topics []models.UpdatedTopic) error
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) InsertTopics ¶
func (*TopicService) UpdateTopics ¶
func (s *TopicService) UpdateTopics( ctx context.Context, topics []models.UpdatedTopic, ) error
Click to show internal directories.
Click to hide internal directories.