Documentation ¶
Index ¶
- Variables
- func GQLHandler(ctx context.Context, usecase usecases.Makao) gin.HandlerFunc
- func HealthStatusCheck(w gin.ResponseWriter, r *http.Request)
- func PlaygroundHandler() gin.HandlerFunc
- func PrepareServer(ctx context.Context, port int, allowedOrigins []string) *http.Server
- func StartGinRouter(ctx context.Context) (*gin.Engine, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var MakaoServiceAllowedHeaders = []string{
"Accept",
"Accept-Charset",
"Accept-Language",
"Accept-Encoding",
"Origin",
"Host",
"User-Agent",
"Content-Length",
"Content-Type",
"Authorization",
"X-Authorization",
}
MakaoServiceAllowedHeaders is a list of CORS allowed headers for the clinical service
View Source
var MakaoServiceAllowedOrigins = []string{
"http://localhost:8080",
}
MakaoServiceAllowedOrigins is a list of CORS origins allowed to interact with this service
Functions ¶
func GQLHandler ¶
GQLHandler sets up a GraphQL resolver
func HealthStatusCheck ¶
func HealthStatusCheck(w gin.ResponseWriter, r *http.Request)
HealthStatusCheck endpoint to check if the server is working.
func PrepareServer ¶
PrepareServer sets up the HTTP server
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.