本文整理匯總了Golang中github.com/labstack/echo.Echo.Put方法的典型用法代碼示例。如果您正苦於以下問題:Golang Echo.Put方法的具體用法?Golang Echo.Put怎麽用?Golang Echo.Put使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類github.com/labstack/echo.Echo
的用法示例。
在下文中一共展示了Echo.Put方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: SetupKeysRoutes
func SetupKeysRoutes(e *echo.Echo) {
e.Get("", listKeys)
e.Get("/:id", showKey)
e.Post("", createKey)
e.Put("/:id", updateKey)
e.Delete("/:id", deleteKey)
}
示例2: setupHandlers
func (s *yovpnServer) setupHandlers(e *echo.Echo) {
e.Get("/", s.blank)
e.Get("/cleanup", s.cleanup)
e.Put("/endpoint", s.createEndpoint)
e.Get("/endpoint/:id", s.getEndpoint)
e.Delete("/endpoint/:id", s.deleteEndpoint)
e.Get("/regions", s.getRegions)
}
示例3: Route
func Route(e *echo.Echo, a *AppContext) {
//Quotes
e.Post("/quotes", a.NewQuote)
e.Get("/quotes", a.GetQuotes)
e.Get("/quotes/:id", a.FindOneQuote)
e.Put("/quotes/:id", a.EditQuote)
e.Delete("/quotes/:id", a.DeleteQuote)
//Slack specific api calls, uses incoming x-www-form-urlencoded post data instead of json
e.Post("/slack/insertQuote", a.NewQuote)
e.Get("/slack/searchQuote", a.SearchQuote)
//Activity feed
e.Post("/activities", a.NewActivity)
e.Get("/activities", a.GetActivities)
e.Get("/activities/:id", a.FindOneActivity)
e.Delete("/activities/:id", a.DeleteActivity)
//Debug
e.Get("/debug", a.SendQuote)
}