Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ClinicalAllowedOrigins = []string{
"https://healthcloud.co.ke",
"https://bewell.co.ke",
"http://localhost:5000",
"http://localhost:4200",
"https://clinical-staging.healthcloud.co.ke",
"https://clinical-testing.healthcloud.co.ke",
"https://clinical-prod.healthcloud.co.ke",
"https://clinical-staging.bewell.co.ke",
"https://clinical-testing.bewell.co.ke",
"https://clinical-demo.bewell.co.ke",
"https://clinical-prod.bewell.co.ke",
"https://uat-emr.advantage.slade360.com",
"https://advantage.slade360.com",
"https://review-empower.web.app",
"https://review-advantage.web.app",
}
ClinicalAllowedOrigins is a list of CORS origins allowed to interact with this service
Functions ¶
func GQLHandler ¶
func GQLHandler(service usecases.Interactor) gin.HandlerFunc
GQLHandler sets up a GraphQL resolver
func SetupRoutes ¶ added in v1.0.0
func SetupRoutes(r *gin.Engine, cacheStore persist.CacheStore, authclient *authutils.Client, usecases usecases.Interactor, infra infrastructure.Infrastructure)
func StartServer ¶ added in v1.0.0
StartServer sets up gin
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.