presentation

package
Version: v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 License: MIT Imports: 41 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 *interactor.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

Types

This section is empty.

Source Files

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