Documentation
¶
Overview ¶
Example ¶
package main import ( "log" "net/http" "github.com/99designs/gqlgen-contrib/gqlapollotracing" "github.com/99designs/gqlgen/graphql" "github.com/99designs/gqlgen/handler" ) var es graphql.ExecutableSchema func main() { handler := handler.GraphQL( es, handler.RequestMiddleware(gqlapollotracing.RequestMiddleware()), handler.Tracer(gqlapollotracing.NewTracer()), ) http.Handle("/query", handler) if err := http.ListenAndServe(":8080", nil); err != nil { log.Fatal(err) } }
Output:
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequestMiddleware ¶
func RequestMiddleware() graphql.RequestMiddleware
func SetTimeNowFunc ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.