services

package
v0.0.0-...-f6ebad7 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: MIT Imports: 6 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 interface {
	CreateBook(c *gin.Context)
	UpdateBook(c *gin.Context)
	DeleteBook(c *gin.Context)
	GetBooks(c *gin.Context)
	GetBook(c *gin.Context)
}

type HealthService

type HealthService interface {
	CheckHealth(c *gin.Context)
}

type Service

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

func NewBookService

func NewBookService(db *gorm.DB) *Service

func NewHealthService

func NewHealthService(db *gorm.DB) *Service

func (*Service) CheckHealth

func (s *Service) CheckHealth(c *gin.Context)

func (*Service) CreateBook

func (s *Service) CreateBook(c *gin.Context)

func (*Service) DeleteBook

func (s *Service) DeleteBook(c *gin.Context)

func (*Service) GetBook

func (s *Service) GetBook(c *gin.Context)

func (*Service) GetBooks

func (s *Service) GetBooks(c *gin.Context)

func (*Service) UpdateBook

func (s *Service) UpdateBook(c *gin.Context)

Jump to

Keyboard shortcuts

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