Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrUpdateBook ¶
func InitializeRoutes ¶
func InitializeRoutes(router *gin.Engine, p *ProductAPI, u *UserAPI, f *FibonacciAPI) error
Types ¶
type FibonacciAPI ¶
type FibonacciAPI struct {
FibonacciService fibonacci.FibonacciService
}
func ProvideFibonacciAPI ¶
func ProvideFibonacciAPI(f fibonacci.FibonacciService) *FibonacciAPI
func (*FibonacciAPI) GetFibonacciAnswer ¶
func (f *FibonacciAPI) GetFibonacciAnswer(c *gin.Context)
func (*FibonacciAPI) ShowGetFibonacciNumberPage ¶
func (*FibonacciAPI) ShowGetFibonacciNumberPage(c *gin.Context)
type ProductAPI ¶
type ProductAPI struct {
ProductService product.ProductService
}
func ProvideProductAPI ¶
func ProvideProductAPI(p product.ProductService) *ProductAPI
func (*ProductAPI) CreateBook ¶
func (p *ProductAPI) CreateBook(c *gin.Context)
func (*ProductAPI) DeleteBook ¶
func (p *ProductAPI) DeleteBook(c *gin.Context)
func (*ProductAPI) GetBook ¶
func (p *ProductAPI) GetBook(c *gin.Context)
func (*ProductAPI) ShowBookCreatingPage ¶
func (*ProductAPI) ShowBookCreatingPage(c *gin.Context)
func (*ProductAPI) ShowIndexPage ¶
func (p *ProductAPI) ShowIndexPage(c *gin.Context)
func (*ProductAPI) UpdateBook ¶
func (p *ProductAPI) UpdateBook(c *gin.Context)
type UserAPI ¶
type UserAPI struct {
UserService user.UserService
}
func ProvideUserAPI ¶
func ProvideUserAPI(p user.UserService) *UserAPI
func (*UserAPI) PerformLogin ¶
func (*UserAPI) ShowLoginPage ¶
func (*UserAPI) ShowRegistrationPage ¶
Click to show internal directories.
Click to hide internal directories.