Documentation
¶
Index ¶
- type Control
- func (c *Control) Display(tpl string)
- func (c *Control) GetInt(name string) int
- func (c *Control) GetString(name string) string
- func (c *Control) Index()
- func (c *Control) PostInt(name string) int
- func (c *Control) PostString(name string) string
- func (c *Control) Register(action string, f func()) *Control
- func (c *Control) Response(code int, result interface{}, message string)
- func (c *Control) ResponseWithHeader(code int, result interface{}, message string)
- func (c *Control) Run(action string)
- type CtlDefault
- type CtlIndex
- type CtlLogin
- type IControl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Control ¶
type Control struct {
Config config.IConfig
TplEngine *template.TplEngine
Module string
Namespace string
Actions map[string]func()
W http.ResponseWriter
R *http.Request
Header map[string]string
}
func NewControl ¶
func (*Control) PostString ¶
func (*Control) ResponseWithHeader ¶
type CtlDefault ¶
type CtlDefault struct {
Control
}
func NewCtlDefault ¶
func NewCtlDefault(config config.IConfig, w http.ResponseWriter, r *http.Request) *CtlDefault
func (*CtlDefault) Index ¶
func (this *CtlDefault) Index()
Click to show internal directories.
Click to hide internal directories.