1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 13:00:54 +00:00
beego mirror
Go to file
astaxie 55ad951bce beego: support more router
//design model
	beego.Get(router, beego.FilterFunc)
	beego.Post(router, beego.FilterFunc)
	beego.Put(router, beego.FilterFunc)
	beego.Head(router, beego.FilterFunc)
	beego.Options(router, beego.FilterFunc)
	beego.Delete(router, beego.FilterFunc)
	beego.Handler(router, http.Handler)

//example

beego.Get("/user", func(ctx *context.Context) {
	ctx.Output.Body([]byte("Get userlist"))
})

beego.Post("/user", func(ctx *context.Context) {
	ctx.Output.Body([]byte("add userlist"))
})

beego.Delete("/user/:id", func(ctx *context.Context) {
	ctx.Output.Body([]byte([]byte(ctx.Input.Param(":id")))
})

import (
    "http"
    "github.com/gorilla/rpc"
    "github.com/gorilla/rpc/json"
)

func init() {
    s := rpc.NewServer()
    s.RegisterCodec(json.NewCodec(), "application/json")
    s.RegisterService(new(HelloService), "")
    beego.Handler("/rpc", s)
}
2014-05-17 02:26:51 +08:00
cache update all files License 2014-05-17 02:26:50 +08:00
config config: fix the import issue 2014-05-17 02:26:51 +08:00
context beego: support other analisys & fix typo 2014-05-17 02:26:50 +08:00
example update all files License 2014-05-17 02:26:50 +08:00
httplib httplib support to set the protocol version for incoming requests 2014-05-17 02:26:51 +08:00
logs update all files License 2014-05-17 02:26:50 +08:00
middleware update all files License 2014-05-17 02:26:50 +08:00
orm bug fixed 2014-05-17 02:26:51 +08:00
plugins/auth update all files License 2014-05-17 02:26:50 +08:00
session update all files License 2014-05-17 02:26:50 +08:00
testing update all files License 2014-05-17 02:26:50 +08:00
toolbox update all files License 2014-05-17 02:26:50 +08:00
utils update all files License 2014-05-17 02:26:50 +08:00
validation update all files License 2014-05-17 02:26:50 +08:00
.gitignore added FlashName,FlashSeperator, & Tests 2014-03-13 22:34:22 -07:00
admin.go beego: add link in the admin console 2014-05-17 02:26:50 +08:00
app.go beego: support more router 2014-05-17 02:26:51 +08:00
beego.go beego: support more router 2014-05-17 02:26:51 +08:00
config_test.go update all files License 2014-05-17 02:26:50 +08:00
config.go update all files License 2014-05-17 02:26:50 +08:00
controller.go fix the typo 2014-05-17 02:26:50 +08:00
filter_test.go beego: support other analisys & fix typo 2014-05-17 02:26:50 +08:00
filter.go update all files License 2014-05-17 02:26:50 +08:00
flash_test.go update all files License 2014-05-17 02:26:50 +08:00
flash.go update all files License 2014-05-17 02:26:50 +08:00
LICENSE update all files License 2014-05-17 02:26:50 +08:00
log.go update all files License 2014-05-17 02:26:50 +08:00
memzipfile.go update all files License 2014-05-17 02:26:50 +08:00
mime.go update all files License 2014-05-17 02:26:50 +08:00
README.md add coding 2014-01-15 09:40:33 +08:00
reload.go update all files License 2014-05-17 02:26:50 +08:00
router_test.go beego: support more router 2014-05-17 02:26:51 +08:00
router.go beego: support more router 2014-05-17 02:26:51 +08:00
staticfile.go update all files License 2014-05-17 02:26:50 +08:00
template_test.go update all files License 2014-05-17 02:26:50 +08:00
template.go update all files License 2014-05-17 02:26:50 +08:00
templatefunc_test.go update all files License 2014-05-17 02:26:50 +08:00
templatefunc.go update all files License 2014-05-17 02:26:50 +08:00

beego

Build Status

beego is a Go Framework inspired by tornado and sinatra.

It is a simple & powerful web framework.

More info beego.me

Features

  • RESTful support
  • MVC architecture
  • Session support (store in memory, file, Redis or MySQL)
  • Cache support (store in memory, Redis or Memcache)
  • Global Config
  • Intelligent routing
  • Thread-safe map
  • Friendly displaying of errors
  • Useful template functions

Documentation

English

API

中文文档

LICENSE

beego is licensed under the Apache Licence, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.html).

[Clone in Koding][koding] [koding]: https://koding.com/Teamwork?import=https://github.com/astaxie/beego/archive/master.zip&c=git1