dependency

package
v0.0.0-...-8f202a6 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapters

type Adapters struct {
}

func InitAdapters

func InitAdapters(cfg *config.Config, drivers *Drivers) *Adapters

type AppRepositories

type AppRepositories struct {
	AuthRepo        domain.AuthRepository
	ArticleRepo     articleDomain.ArticleRepository
	DoctorRepo      doctorDomain.DoctorRepository
	AppointmentRepo appointmentDomain.AppointmentRepository
}

func InitRepos

func InitRepos(db *sql.DB, redis *redis.Redis) *AppRepositories

type AppUsecase

type AppUsecase struct {
	AuthUsecase        domain.AuthUsecase
	ArticleUsecase     articleDomain.ArticleUsecase
	DoctorUsecase      doctorDomain.DoctorUsecase
	AppointmentUsecase appointmentDomain.AppointmentUsecase
}

func InitUsecase

func InitUsecase(config *config.Config, repo *AppRepositories, common *CommonRepositories) *AppUsecase

type ApplicationHandler

type ApplicationHandler struct {
	AuthHandler        domain.AuthHandler
	AuthMiddleware     *middleware.AuthMiddleware
	ArticleHandler     *articleHandler.ArticleHandler
	DoctorHandler      *doctorHandler.DoctorHandler
	AppointmentHandler *appointmentHandler.AppointmentHandler
}

func InitHandlers

func InitHandlers(ctx context.Context, cfg *config.Config, service *AppUsecase) *ApplicationHandler

type CommonRepositories

type CommonRepositories struct {
}

func InitCommonRepos

func InitCommonRepos(Adapters *Adapters, Drivers *Drivers, config *config.Config) *CommonRepositories

type Drivers

type Drivers struct {
	Db       *sql.DB
	Redis    *redis.Redis
	S3       *s3.Client
	Http     http_wrapper.IHTTPClientWrapper
	SES      *mailerSesv2.Client
	SMTPAuth *smtp.Auth
}

func InitDrivers

func InitDrivers(cfg *config.Config) *Drivers

Jump to

Keyboard shortcuts

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