services

package
v0.0.0-...-a337c98 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookService

type BookService struct {
	// contains filtered or unexported fields
}

func NewBookService

func NewBookService(dao bookDAO) *BookService

NewBookService creates a new BookService with the given book DAO.

func (*BookService) FindAll

func (s *BookService) FindAll() ([]models.Book, error)

type PostService

type PostService struct {
	// contains filtered or unexported fields
}

func NewPostService

func NewPostService(dao postDAO) *PostService

NewPostService creates a new PostService with the given post DAO.

func (*PostService) FindAll

func (s *PostService) FindAll() ([]models.Post, error)

func (*PostService) FindAllByTag

func (s *PostService) FindAllByTag(tagName string) ([]models.Post, error)

func (*PostService) Get

func (s *PostService) Get(id uint) (*models.Post, error)

type ProjectService

type ProjectService struct {
	// contains filtered or unexported fields
}

func NewProjectService

func NewProjectService(dao projectDAO) *ProjectService

NewProjectService creates a new ProjectService with the given project DAO.

func (*ProjectService) FindAll

func (s *ProjectService) FindAll() ([]models.Project, error)

type SectionService

type SectionService struct {
	// contains filtered or unexported fields
}

func NewSectionService

func NewSectionService(dao sectionDAO) *SectionService

NewSectionService creates a new SectionService with the given section DAO.

func (*SectionService) FindAll

func (s *SectionService) FindAll(postId uint) ([]models.Section, error)

type TagService

type TagService struct {
	// contains filtered or unexported fields
}

func NewTagService

func NewTagService(dao tagDAO) *TagService

NewTagService creates a new TagService with the given tag DAO.

func (*TagService) FindAll

func (s *TagService) FindAll(postId uint) ([]models.Tag, error)

Jump to

Keyboard shortcuts

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