content

package
v0.0.0-...-5ef4ed8 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("content not found")

Functions

This section is empty.

Types

type Repository

type Repository interface {
	SelectAll() ([]*models.Content, error)
	Save(*models.Content) (*models.Content, error)
	Update(int, *models.Content) error
	SelectByID(int) (*models.Content, error)
	DeleteByID(int) error
}

type Service

type Service interface {
	GetAll() ([]*models.Content, error)
	Create(*models.Content) (*models.Content, error)
	Update(int, *models.Content) (*models.Content, error)
	GetByID(int) (*models.Content, error)
	DeleteByID(id int) error
}

Directories

Path Synopsis
controller
repository

Jump to

Keyboard shortcuts

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