application

package
v0.0.0-...-753941a Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 26 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           *pgxpool.Pool
	Redis        *redis.Client
	Tracer       *trace.TracerProvider
	Mailer       *gomail.Dialer
	CustomerGRPC *grpc.ClientConn
	MerchantGRPC *grpc.ClientConn
	WalletGRPC   *grpc.ClientConn
}

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