presentation

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MIT Imports: 25 Imported by: 0

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

func StartServer(
	ctx context.Context,
	port int,
)

StartServer sets up gin

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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