application

package
v0.0.0-...-96a2c75 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Application *gin.Engine
	Context     context.Context
	Config      *config.Configuration
	Logger      *logrus.Logger
	DB          *mongo.Database
	Redis       *redis.Client
	Tracer      *trace.TracerProvider
	Mailer      *gomail.Dialer
}

App ...

func SetupApplication

func SetupApplication(ctx context.Context) (*App, error)

SetupApplication configuring dependencies app needed

func (*App) Close

func (a *App) Close(ctx context.Context)

Close method will close any instances before app terminated

type Dependency

type Dependency struct {
	HealthCheckController controller.HealthCheckController
	AuthController        controller.AuthController
}

func SetupDependencyInjection

func SetupDependencyInjection(app *App) *Dependency

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL