Documentation ¶
Index ¶
- func GlobalSession() *session.Manager
- func InitSession(ini *simini.SimIni) error
- func Router(rootpath string, c beego.ControllerInterface, mappingMethods ...string) *beego.App
- func Run(params ...string)
- func SetStaticPath(k, v string)
- type Controller
- func (this *Controller) FormValue(key string) string
- func (this *Controller) Get()
- func (this *Controller) Path() string
- func (this *Controller) SessionRelease(session session.SessionStore)
- func (this *Controller) SessionStart() (session session.SessionStore, err error)
- func (this *Controller) Write(s []byte)
- func (this *Controller) WriteString(s string)
- type ControllerFunc
- type ControllerHandler
- type ControllerHandlerInterface
- type ControllerHandlerMap
- type CtrHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GlobalSession ¶
func InitSession ¶
func SetStaticPath ¶
func SetStaticPath(k, v string)
Types ¶
type Controller ¶
type Controller struct { beego.Controller // contains filtered or unexported fields }
func NewController ¶
func NewController(h CtrHandler) *Controller
func (*Controller) FormValue ¶
func (this *Controller) FormValue(key string) string
func (*Controller) Get ¶
func (this *Controller) Get()
func (*Controller) Path ¶
func (this *Controller) Path() string
func (*Controller) SessionRelease ¶
func (this *Controller) SessionRelease(session session.SessionStore)
func (*Controller) SessionStart ¶
func (this *Controller) SessionStart() (session session.SessionStore, err error)
func (*Controller) Write ¶
func (this *Controller) Write(s []byte)
func (*Controller) WriteString ¶
func (this *Controller) WriteString(s string)
type ControllerFunc ¶
type ControllerFunc func(ctl beego.ControllerInterface)
type ControllerHandler ¶
type ControllerHandler struct {
HandlerFunc ControllerHandlerMap
}
func (*ControllerHandler) Add ¶
func (this *ControllerHandler) Add(path string, h ControllerFunc)
func (*ControllerHandler) Default ¶
func (this *ControllerHandler) Default(ctl beego.ControllerInterface)
func (*ControllerHandler) Delete ¶
func (this *ControllerHandler) Delete(path string)
func (*ControllerHandler) Do ¶
func (this *ControllerHandler) Do(path string, ctl beego.ControllerInterface)
type ControllerHandlerInterface ¶
type ControllerHandlerInterface interface { Add(path string, h ControllerFunc) Delete(path string) Default(v beego.ControllerInterface) Do(path string, v beego.ControllerInterface) }
type ControllerHandlerMap ¶
type ControllerHandlerMap map[string]ControllerFunc
type CtrHandler ¶
type CtrHandler interface { Handler(*Controller) bool AddHandler(path string, h func(*Controller) int) DelHandler(path string) }
Click to show internal directories.
Click to hide internal directories.