Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct { Router *mux.Router DBClient *mongo.Client DB *mongo.Database // contains filtered or unexported fields }
Structure for the app It contains the serverAddress, router, Database client, Database name and the logger
type RequestHandlerFunction ¶
RequestHandlerFunction is a custome type that help us to pass db arg to all endpoints
Click to show internal directories.
Click to hide internal directories.