app

package
v0.0.0-...-3b7b480 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

Package app initializes the application components such as database and cache clients.

Package app initializes the application routers and dependencies for the every module.

Package app contains the application logic for the orders API, including initialization and shutdown procedures.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Shutdown

func Shutdown(ctx context.Context, app *App, log *zerolog.Logger) error

Types

type App

type App struct {
	HTTPServer *http.Server
	Database   *DBWrapper
	Redis      *redis.Client
	Log        *zerolog.Logger
	AppConfig  *config.AppConfig
	JWTConfig  *config.JWTConfig
}

func Bootstrap

func Bootstrap(ctx context.Context, log *zerolog.Logger) (*App, error)

type DBPoolWrapper

type DBPoolWrapper struct {
	Pool *pgxpool.Pool
}

type DBWrapper

type DBWrapper struct {
	DB *gorm.DB
}

Jump to

Keyboard shortcuts

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