Skip to content

rodrigobotelho/graphql-kit

Repository files navigation

Project to use go-kit with graph-gophers/graphql-go

This project has the objective to use the facilities of go-kit together with the facilities of graph-gophers/graphql-go.

It creates an api to add services as graphql, logging, instrumenting and authenticating.

Go kit
graphql-go

Example of utilization

h := graphql-kit.Handlers{}
h.AddGraphqlService(schema, resolver)
h.AddLoggingService(logger)
h.AddInstrumentingService(namespace, moduleName)
h.AddAuthenticationService(secret, method, claims)
http.Handle("/graphql", h.Handler())

Another option

h := graphql-kit.Handlers{}
h.AddFullGraphqlService(
  schema, resolver,
  logger,
  namespace, moduleName,
  secret, method, claims
)
http.Handle("/graphql", h.Handler())

About

Project to use go-kit with graph-gophers/graphql

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages