controllers

package
v0.0.0-...-4cd13d5 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	DB     *gorm.DB
	Router *gin.Engine
}

Server ...

func (*Server) CreateBook

func (server *Server) CreateBook(c *gin.Context)

CreateBook ...

func (*Server) DeleteBook

func (server *Server) DeleteBook(c *gin.Context)

DeleteBook ...

func (*Server) GetBook

func (server *Server) GetBook(c *gin.Context)

GetBook ...

func (*Server) GetBooks

func (server *Server) GetBooks(c *gin.Context)

GetBooks ...

func (*Server) Initialize

func (server *Server) Initialize(Dbdriver, DbUser, DbPassword, DbPort, DbHost, DbName string)

Initialize ...

func (*Server) Run

func (server *Server) Run(addr string)

Run ...

func (*Server) UpdateBook

func (server *Server) UpdateBook(c *gin.Context)

UpdateBook ...

Jump to

Keyboard shortcuts

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