当前位置: 首页>>代码示例>>Golang>>正文


Golang Echo.Delete方法代码示例

本文整理汇总了Golang中github.com/labstack/echo.Echo.Delete方法的典型用法代码示例。如果您正苦于以下问题:Golang Echo.Delete方法的具体用法?Golang Echo.Delete怎么用?Golang Echo.Delete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在github.com/labstack/echo.Echo的用法示例。


在下文中一共展示了Echo.Delete方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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)
}
开发者ID:cdwilhelm,项目名称:self-service-plugins,代码行数:7,代码来源:keys.go

示例2: loadHandlers

func loadHandlers(e *echo.Echo) {

	if itrak.Debug {
		e.SetDebug(true)
	}

	// Point to the client application generated inside the webapp dir
	e.Index("./webapp/build/index.html")
	e.ServeDir("/", "./webapp/build/")

	server_stats = stats.New()
	e.Use(server_stats.Handler)

	e.Get("/stats", getStats)
	e.Get("/test1", getTestData)
	e.Get("/part", getPartsList)
	e.Get("/task", getTaskList)
	e.Get("/jtask", getJTaskList)

	e.Post("/login", login)
	e.Delete("/login", logout)

	e.Get("/people", getPeople)
	e.Get("/people/:id", getPerson)
	e.Post("/people/:id", savePerson)

	e.Get("/site", getSites)
	e.Get("/site/:id", getSite)
	e.Post("/site/:id", saveSite)

	e.Get("/roles", getRoles)

	e.Get("/vendors", getAllVendors)
	e.Post("/vendors/:id", saveVendor)

	// Equipment Related functions
	e.Get("/equipment", getAllEquipment)
	e.Get("/site_equipment/:id", getAllSiteEquipment)
	e.Get("/equipment/:id", getEquipment)
	e.Post("/equipment/:id", saveEquipment)
	e.Get("/subparts/:id", subParts)
	e.Get("/spares", getAllSpares)
	e.Get("/spares/:id", getEquipment)
	e.Post("/spares/:id", saveEquipment)
	e.Get("/consumables", getAllConsumables)
	e.Get("/consumables/:id", getEquipment)
	e.Post("/consumables/:id", saveEquipment)

	e.Get("/equiptype", getAllEquipTypes)
	e.Get("/equiptype/:id", getEquipType)
	e.Post("/equiptype/:id", saveEquipType)

	e.Get("/task", getAllTask)
	e.Get("/sitetask/:id", getSiteTasks)
	e.Get("/task/:id", getTask)
	e.Post("/task/:id", saveTask)
}
开发者ID:steveoc64,项目名称:itrak.mmaint,代码行数:57,代码来源:handlers.go

示例3: 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)
}
开发者ID:xperimental,项目名称:yovpn,代码行数:10,代码来源:web.go

示例4: SetupDropletsRoutes

// Setup routes for droplet actions
func SetupDropletsRoutes(e *echo.Echo) {
	e.Get("", listDroplets)
	e.Get("/:id", showDroplet)
	e.Post("", createDroplet)
	e.Delete("/:id", deleteDroplet)
	e.Get("/:id/kernels", listDropletKernels)
	e.Get("/:id/snapshots", listDropletSnapshots)
	e.Get("/:id/backups", listDropletBackups)
	e.Get("/:id/actions", listDropletActions)
	e.Get("/:id/neighbors", listDropletNeighbors)
}
开发者ID:cdwilhelm,项目名称:self-service-plugins,代码行数:12,代码来源:droplets.go

示例5: 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)
}
开发者ID:wvdeutekom,项目名称:GoQuotes,代码行数:21,代码来源:api.go

示例6: Init

func Init(e *echo.Echo) {
	e.Get("/api/todos", todocontroller.GetAll)
	e.Post("/api/todos", todocontroller.NewTodo)
	e.Delete("/api/todos/:id", todocontroller.RemoveTodo)
}
开发者ID:bgdsh,项目名称:playground,代码行数:5,代码来源:todoroutes.go


注:本文中的github.com/labstack/echo.Echo.Delete方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。