topic

package
v0.0.0-...-12c9185 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2018 License: MIT Imports: 4 Imported by: 2

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

Jump to

Keyboard shortcuts

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