Documentation ¶
Overview ¶
Package gorest - Go RESTful API starter kit with Gin, JWT, GORM (MySQL, PostgreSQL, SQLite), Redis, Mongo, 2FA, email verification, password recovery
Directories ¶
Path | Synopsis |
---|---|
Package config is responsible for reading all environment variables and set up the base configuration for a functional application
|
Package config is responsible for reading all environment variables and set up the base configuration for a functional application |
Package controller contains all the controllers of the application
|
Package controller contains all the controllers of the application |
Package database handles connections to different types of databases
|
Package database handles connections to different types of databases |
migrate
Package migrate to migrate the schema
|
Package migrate to migrate the schema |
model
Package model contains all the models required for a functional database management system
|
Package model contains all the models required for a functional database management system |
main function of the example application
|
main function of the example application |
controller
Package controller contains all the controllers of the application
|
Package controller contains all the controllers of the application |
database/migrate
Package migrate to migrate the schema for the example application
|
Package migrate to migrate the schema for the example application |
database/model
Package model contains all the models required for a functional database management system
|
Package model contains all the models required for a functional database management system |
handler
Package handler of the example application
|
Package handler of the example application |
router
Package router contains all routes of the example application
|
Package router contains all routes of the example application |
Package handler sits in between controller and database services.
|
Package handler sits in between controller and database services. |
Package lib provides additional functionalities to the application:
|
Package lib provides additional functionalities to the application: |
middleware
Package middleware contains:
|
Package middleware contains: |
renderer
Package renderer uses template engine to render and serve HTML pages
|
Package renderer uses template engine to render and serve HTML pages |
Package service contains common functions used by the whole application
|
Package service contains common functions used by the whole application |
Click to show internal directories.
Click to hide internal directories.