server

package
v0.0.0-...-f0c377f Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: MIT Imports: 85 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependencies

type Dependencies struct {
	Cache     cache.Cache
	DbService *persistence.DbService

	AppointmentTopic topic.TopicService
	FeedbackTopic    topic.TopicService

	FileStorage storage.StorageService

	AppointmentRepository   appointment_repository_contract.Repository
	EventRepository         event_repository_contract.Repository
	FeedbackRepository      feedback_repository_contract.Repository
	MedicalReportRepository medical_report_repository_contract.Repository
	FileRepository          file_repository_contract.Repository
	FileAccessRepository    file_access_repository_contract.Repository

	CreateAppointmentUseCase   create_appointment_contract.UseCase
	GetAppointmentByIdUseCase  get_appointment_by_id_contract.UseCase
	ListAppointmentsUseCase    list_appointments_contract.UseCase
	UpdateAppointmentUseCase   update_appointment_contract.UseCase
	ConfirmAppointmentUseCase  confirm_appointment_contract.UseCase
	CancelAppointmentUseCase   cancel_appointment_contract.UseCase
	GetAppointmentFilesUseCase get_appointment_files_contract.UseCase

	CreateFeedbackUseCase  create_feedback_contract.UseCase
	GetFeedbackByIdUseCase get_feedback_by_id_contract.UseCase
	ListFeedbacksUseCase   list_feedbacks_contract.UseCase

	CreateMedicalReportUseCase create_medical_report_contract.UseCase
	GetMedialReportByIdUseCase get_medical_report_by_id_contract.UseCase
	ListMedicalReportsUseCase  list_medical_reports_contract.UseCase

	UploadFileUseCase  upload_file_contract.UseCase
	GetFileByIdUseCase get_file_by_id_contract.UseCase
	ListFilesUseCase   list_files_contract.UseCase

	CreateFileAccessUseCase create_file_access_contract.UseCase
	ListFileAccessUseCase   list_file_access_contract.UseCase
}

type Server

type Server struct {
	Config *config.Config

	Dependencies
}

func NewServer

func NewServer(ctx context.Context, config *config.Config) (*Server, error)

func (*Server) GetServer

func (s *Server) GetServer() *http.Server

func (*Server) RegisterRoutes

func (s *Server) RegisterRoutes() http.Handler

Jump to

Keyboard shortcuts

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