server

package
v0.0.0-...-0fbe093 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: MIT Imports: 42 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

	Hasher       hasher.Hasher
	TokenService token.TokenService

	UserRepository   user_repository_contract.Repository
	DoctorRepository doctor_repository_contract.Repository

	CreateUserUseCase  create_user_contract.UseCase
	GetUserByIdUseCase get_user_by_id_contract.UseCase
	UpdateUserUseCase  update_user_contract.UseCase
	ListUsersUseCase   list_users_contract.UseCase
	LoginUserUseCase   login_user_contract.UseCase

	RatingDoctorUseCase rating_doctor_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