story

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: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrNoStoryFound sub-domain specific error
	ErrNoStoryFound = errors.New("Cannot find Story")
)

Functions

This section is empty.

Types

type Service

type Service interface {
	CreateStory(story chronicle.Story) (createdStory chronicle.Story, err error)
	UpdateStory(story chronicle.Story) (updatedStory chronicle.Story, err error)
	GetStories(filter chronicle.StoryFilterOptions, option chronicle.PagingOptions) (chronicle.Stories, int, error)
	GetStoryByID(id int) (chronicle.Story, error)
	GetStoryBySlug(slug string) (chronicle.Story, error)
	DeleteStoryByID(id int) error
}

Service provide an interface to story domain service

func NewService

func NewService(storyRepository chronicle.StoryRepository) Service

Jump to

Keyboard shortcuts

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