Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

gin-appengine

Easier integration between Gin and App Engine

  • GaeToGinHandler is a helper method to save you from repetitive context.Context initialization code. It should be used to register gin handlers that have a more convenient function signature.
  • GaeErrorLogger is middleware to write App Engine logs. It will pick up erors from gin (if you call AbortWithError, Error etc.) and log either Errors or Warnings, depending on request status code set by your handler (anything <500 is a warning).
router := gin.Default()
router.Use(gingae.GaeErrorLogger)
router.GET("/route", gingae.GaeToGinHandler(handler))

func handler(c *gin.Context, gae context.Context)  {
  // Your stuff
}

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages