Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
pkg
|
|
controller/rest
Package rest and its sub-packages are the application REST entry point.
|
Package rest and its sub-packages are the application REST entry point. |
controller/rest/body
Package body includes models that handles request and response data
|
Package body includes models that handles request and response data |
controller/rest/jwt
Package jwt contains structs that handles JWT token encoding and parsing
|
Package jwt contains structs that handles JWT token encoding and parsing |
controller/rest/middleware
Package middleware contains custom http request middlewares
|
Package middleware contains custom http request middlewares |
controller/rest/response
Package response holds utility functions related to http response handling
|
Package response holds utility functions related to http response handling |
controller/rest/routing
Package routing contains files that registers the REST endpoints handle by the application
|
Package routing contains files that registers the REST endpoints handle by the application |
model/dto
Package dto holds types meant to carry values for an specific task, or to limit the amount of info exposed to outer application layers
|
Package dto holds types meant to carry values for an specific task, or to limit the amount of info exposed to outer application layers |
model/entity
Package entity groups types that models a database table
|
Package entity groups types that models a database table |
model/env
Package env aggregates configuration models that are used by the application.
|
Package env aggregates configuration models that are used by the application. |
model/types
Package types models the a variety of custom application types
|
Package types models the a variety of custom application types |
repository
Package repository exposes interfaces meant to serve outer layers and general artefacts there aren't implementation-specific.
|
Package repository exposes interfaces meant to serve outer layers and general artefacts there aren't implementation-specific. |
repository/mysql
Package mysql contains artefacts that implements the repository interfaces for the mysql db
|
Package mysql contains artefacts that implements the repository interfaces for the mysql db |
service
Package service holds files responsible for input validation and managing application integrity.
|
Package service holds files responsible for input validation and managing application integrity. |
service/validation
Package validation groups extensive business validation rules
|
Package validation groups extensive business validation rules |
testutil
Package testutil contains test utilities used by different application tests
|
Package testutil contains test utilities used by different application tests |
Click to show internal directories.
Click to hide internal directories.