presentation

package
v0.0.42 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: MIT Imports: 22 Imported by: 0

Documentation

Index

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

func PrepareServer(ctx context.Context, port int, allowedOrigins []string) *http.Server

PrepareServer starts up a server

func Router

func Router(ctx context.Context) (*mux.Router, error)

Router sets up the ginContext router

func SharedAuthenticatedISCRoutes added in v0.0.9

func SharedAuthenticatedISCRoutes(handlers rest.HandlersInterfaces, r *mux.Router) *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) *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) *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.

Jump to

Keyboard shortcuts

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