usecase

package
Version: v0.0.0-...-76ef0be Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArticleUsecase

type ArticleUsecase interface {
	Fetch(cursor string, num int64) ([]*models.Article, string, error)
	GetByID(id int64) (*models.Article, error)
	Update(ar *models.Article) (*models.Article, error)
	GetByTitle(title string) (*models.Article, error)
	Store(*models.Article) (*models.Article, error)
	Delete(id int64) (bool, error)
}

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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