Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func String ¶
String reads the .graphql schema files from the embed.FS, concatenating the files together into one string.
If this method complains about not finding functions AssetNames() or MustAsset(), run `go generate` against this package to generate the functions.
func View ¶ added in v1.2.0
func View(handleMethod HttpMethod, handlePath string) http.HandlerFunc
Types ¶
type HttpMethod ¶ added in v1.2.0
type HttpMethod string
const ( Post HttpMethod = http.MethodPost Get HttpMethod = http.MethodGet Put HttpMethod = http.MethodPut Delete HttpMethod = http.MethodDelete DefaultHandlePath = "/graphql" DefaultViewPath = "/view" )
Click to show internal directories.
Click to hide internal directories.