Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2: improve package structure and replace mux with gin #2

Merged
merged 1 commit into from
Sep 1, 2021

Conversation

waltzofpearls
Copy link
Contributor

@waltzofpearls waltzofpearls commented Aug 29, 2021

  • Simpler subfolder and package structure
  • Replaced Gorilla Mux with Gin
  • Better Logger middleware with zap
  • Improved graceful shutdown with cancelable context

Copy link
Contributor

@chazlett chazlett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great. Thanks for improving everything, but especially logging. I did it very naively before and this is much better.

# https://gqlgen.com/getting-started/

type Status {
State: String!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is String!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Response from Rollie: this is graphql specific generated code.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exclamation marks a field to be non-nullable. https://graphql.org/learn/schema/#object-types-and-fields

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants