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 application
|
main function of the 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
|
Package migrate to migrate the schema |
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 ...
|
Package handler ... |
router
Package router contains all routes
|
Package router contains all routes |
Package handler ...
|
Package handler ... |
Package lib provides additional functionalities to the application: - AES encryption-decryption - Argon2id hashing - SHA hashing - Two-factor authentication - Email format validation along with MX lookup
|
Package lib provides additional functionalities to the application: - AES encryption-decryption - Argon2id hashing - SHA hashing - Two-factor authentication - Email format validation along with MX lookup |
middleware
Package middleware contains: - CORS - Application firewall - Pongo2 template engine - JWT - Sentry logger - Two-factor auth validator
|
Package middleware contains: - CORS - Application firewall - Pongo2 template engine - JWT - Sentry logger - Two-factor auth validator |
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.