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: 23 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   *echo.Echo
	Context       context.Context
	Config        *config.Configuration
	Logger        *logrus.Logger
	DB            *pgxpool.Pool
	Redis         *redis.Client
	KafkaProducer *kafka.Writer
	GRPC          *grpc.Server
	Tracer        *trace.TracerProvider
}

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
	WalletController      *controller.WalletControllerImpl
}

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