Documentation ¶
Index ¶
- func Create() *chi.Mux
- func GetCorsOptions() cors.Options
- func GetHealth(writer http.ResponseWriter, request *http.Request)
- func GraphHandler(writer http.ResponseWriter, request *http.Request)
- func RefreshSchemaHandler(writer http.ResponseWriter, request *http.Request)
- type Status
- type StatusResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCorsOptions ¶
GetCorsOptions returns the CORS options for the API based on the environment.
func GetHealth ¶
func GetHealth(writer http.ResponseWriter, request *http.Request)
GetHealth returns a health status.
func GraphHandler ¶
func GraphHandler(writer http.ResponseWriter, request *http.Request)
GraphHandler handles all incoming GraphQL requests.
func RefreshSchemaHandler ¶
func RefreshSchemaHandler(writer http.ResponseWriter, request *http.Request)
RefreshSchemaHandler ...
Types ¶
type Status ¶
type Status struct {
API string `json:"api"`
}
Status represents the results of a health check.
type StatusResponse ¶
type StatusResponse struct {
*Status
}
StatusResponse is the response payload for the Status data model.
func (*StatusResponse) Render ¶
func (res *StatusResponse) Render(w http.ResponseWriter, r *http.Request) error
Render - renders an InvitationResponse.
Click to show internal directories.
Click to hide internal directories.