controller

package
v0.0.0-...-9ac5701 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GlobalSession

func GlobalSession() *session.Manager

func InitSession

func InitSession(ini *simini.SimIni) error

func Router

func Router(rootpath string, c beego.ControllerInterface, mappingMethods ...string) *beego.App

func Run

func Run(params ...string)

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)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL