Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //ErrNoTopicFound sub-domain specific error ErrNoTopicFound = errors.New("Cannot find Topic") )
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface {
CreateTopic(topic chronicle.Topic) (createdTopic chronicle.Topic, err error)
UpdateTopic(topic chronicle.Topic) (updatedTopic chronicle.Topic, err error)
GetTopics(option chronicle.PagingOptions) (chronicle.Topics, int, error)
GetTopicByID(id int) (chronicle.Topic, error)
GetTopicBySlug(slug string) (chronicle.Topic, error)
DeleteTopicByID(id int) error
}
Service provide an interface to topic domain service
func NewService ¶
func NewService(topicRepository chronicle.TopicRepository) Service
Click to show internal directories.
Click to hide internal directories.