Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { Application *fiber.App Context context.Context Config *config.Configuration Logger *logrus.Logger DB *pgx.Conn GConfig *oauth2.Config Redis *redis.Client HTTPClient *http.Client }
App is an wrapper application instance that contains application context, configuration, logger, etc
func SetupApplication ¶
SetupApplication is a function to create application instance
type Dependency ¶
type Dependency struct { HealthCheckController controller.IHealthCheckController AuthController controller.IAuthController TagController controller.ITagController UserController controller.IUserController BlogController controller.IBlogController }
Dependency can contain anything that will provide data for controller layer
func SetupDependencyInjection ¶
func SetupDependencyInjection(app *App) *Dependency
SetupDependencyInjection is a function to set up dependencies
Click to show internal directories.
Click to hide internal directories.