1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-23 11:10:50 +00:00
beego mirror
Go to file
astaxie e657dcfd5f beego: support namespace
ns := beego.NewNamespace("/v1/api/")
ns.Cond(func(ctx *context.Context)bool{
	    if ctx.Input.Domain() == "www.beego.me" {
	    	return true
	    }
	    return false
	})
.Filter("before", Authenticate)
.Router("/order",	&admin.OrderController{})
.Get("/version",func (ctx *context.Context) {
	ctx.Output.Body([]byte("1.0.0"))
})
.Post("/login",func (ctx *context.Context) {
	if ctx.Query("username") == "admin" && ctx.Query("username") ==
"password" {

	}
})
.Namespace(
	NewNamespace("/shop").
		Get("/order/:id", func(ctx *context.Context) {
		ctx.Output.Body([]byte(ctx.Input.Param(":id")))
	}),
)
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 orm: add test for unexported struct field 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 namespace 2014-05-17 02:26:51 +08:00
beego.go beego: support namespace 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
namespace_test.go beego: support namespace 2014-05-17 02:26:51 +08:00
namespace.go beego: support namespace 2014-05-17 02:26:51 +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 namespace 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