postgresql

package
v0.0.0-...-2734c1c Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoMigrate

func AutoMigrate(db *gorm.DB, database interface{})

func HealthCheck

func HealthCheck(dsn string) bool

func OpenDB

func OpenDB() *gorm.DB

Types

type Handler

type Handler struct {
	DB  *gorm.DB
	CFG *config.Conf
}

func New

func New(db *gorm.DB, cfg *config.Conf) Handler

func (Handler) AddNewBook

func (h Handler) AddNewBook(c *gin.Context)

func (Handler) DeleteBook

func (h Handler) DeleteBook(c *gin.Context)

func (Handler) GetBookByID

func (h Handler) GetBookByID(c *gin.Context)

Jump to

Keyboard shortcuts

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