Documentation
¶
Index ¶
- Variables
- func GQLHandler(ctx context.Context, service 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(handlers rest.HandlersInterfaces, r *mux.Router)
- func SharedAuthenticatedRoutes(handlers rest.HandlersInterfaces, r *mux.Router)
- func SharedRoutes(handlers rest.HandlersInterfaces, r *mux.Router)
- func SharedUnauthenticatedRoutes(handlers rest.HandlersInterfaces, r *mux.Router)
Constants ¶
This section is empty.
Variables ¶
View Source
var AllowedOrigins = []string{
"https://healthcloud.co.ke",
"https://bewell.healthcloud.co.ke",
"http://localhost:5000",
}
AllowedOrigins is list of CORS origins allowed to interact with this service
Functions ¶
func GQLHandler ¶
func GQLHandler(ctx context.Context, service usecases.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 ¶ added in v0.0.9
func SharedAuthenticatedISCRoutes(handlers rest.HandlersInterfaces, r *mux.Router)
SharedAuthenticatedISCRoutes return ISC REST routes shared by open/closed onboarding services
func SharedAuthenticatedRoutes ¶ added in v0.0.9
func SharedAuthenticatedRoutes(handlers rest.HandlersInterfaces, r *mux.Router)
SharedAuthenticatedRoutes return REST routes shared by open/closed onboarding services
func SharedRoutes ¶ added in v0.0.9
func SharedRoutes(handlers rest.HandlersInterfaces, r *mux.Router)
SharedRoutes return REST routes shared by open/closed onboarding services
func SharedUnauthenticatedRoutes ¶ added in v0.0.9
func SharedUnauthenticatedRoutes(handlers rest.HandlersInterfaces, r *mux.Router)
SharedUnauthenticatedRoutes return REST routes shared by open/closed onboarding services
Types ¶
This section is empty.
Directories
¶
Path | Synopsis |
---|---|
Package interactor represent reusable chunks of code that abstract logic from presenters while simplifying your app and making future changes effortless.
|
Package interactor represent reusable chunks of code that abstract logic from presenters while simplifying your app and making future changes effortless. |
Click to show internal directories.
Click to hide internal directories.