Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppRepositories ¶
type AppRepositories struct { AuthRepo domain.AuthRepository ArticleRepo articleDomain.ArticleRepository DoctorRepo doctorDomain.DoctorRepository AppointmentRepo appointmentDomain.AppointmentRepository }
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 ¶
Click to show internal directories.
Click to hide internal directories.