Documentation ¶
Index ¶
- Variables
- func AuthenticatedGraphQLRoute(ctx context.Context, r *mux.Router)
- func GQLHandler(ctx context.Context, usecases usecases.Interactor, ...) http.HandlerFunc
- func HealthStatusCheck(w http.ResponseWriter, r *http.Request)
- func PrepareServer(ctx context.Context, port int, allowedOrigins []string) *http.Server
- func Router(ctx context.Context) (*mux.Router, error)
- func SharedAuthenticatedISCRoutes(ctx context.Context, r *mux.Router)
- func SharedUnauthenticatedRoutes(ctx context.Context, r *mux.Router)
Constants ¶
This section is empty.
Variables ¶
View Source
var AllowedOrigins = []string{
"https://healthcloud.co.ke",
"https://bewell.healthcloud.co.ke",
"https://a.bewell.co.ke",
"https://b.bewell.co.ke",
"http://localhost:5000",
"https://europe-west3-bewell-app.cloudfunctions.net",
}
AllowedOrigins is list of CORS origins allowed to interact with this service
Functions ¶
func AuthenticatedGraphQLRoute ¶
AuthenticatedGraphQLRoute inits an authenticated GraphQL route
func GQLHandler ¶
func GQLHandler(ctx context.Context, usecases usecases.Interactor, infra infrastructure.Interactor, ) http.HandlerFunc
GQLHandler sets up a GraphQL resolver
func HealthStatusCheck ¶
func HealthStatusCheck(w http.ResponseWriter, r *http.Request)
HealthStatusCheck endpoint to check if the server is working.
func PrepareServer ¶
PrepareServer starts up a server
func SharedAuthenticatedISCRoutes ¶
SharedAuthenticatedISCRoutes return ISC REST routes shared by open/closed engagement services
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.