app

package
v0.0.0-...-674016c Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: Unlicense Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CORSMiddleware

func CORSMiddleware() gin.HandlerFunc

func ContextInjectionMiddleware

func ContextInjectionMiddleware(app App) gin.HandlerFunc

context: inject the deps handlers into controllers

Types

type App

type App struct {
	C      config.AppConfig
	Router *gin.Engine
	DB     *gorm.DB
	LOG    *zap.Logger
	P      *paginate.Pagination
}

func (*App) InitDB

func (app *App) InitDB()

func (*App) MigrateDB

func (app *App) MigrateDB()

func (*App) Run

func (app *App) Run()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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