Skip to content

firmfirm/gin-appengine

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages