Versions in this module Expand all Collapse all v1 v1.0.0 Sep 8, 2020 Changes in this version + type Control struct + Actions map[string]func() + Config config.IConfig + Header map[string]string + Module string + Namespace string + R *http.Request + TplEngine *template.TplEngine + W http.ResponseWriter + func NewControl(config config.IConfig, w http.ResponseWriter, r *http.Request) *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 struct + func NewCtlDefault(config config.IConfig, w http.ResponseWriter, r *http.Request) *CtlDefault + func (this *CtlDefault) Index() + type CtlIndex struct + func NewCtlIndex(config config.IConfig, w http.ResponseWriter, r *http.Request) *CtlIndex + func (this *CtlIndex) Index() + type CtlLogin struct + func NewCtlLogin(config config.IConfig, w http.ResponseWriter, r *http.Request) *CtlLogin + func (this *CtlLogin) Index() + type IControl interface + Display func(string) + Register func(string, func()) *Control + Response func(int, interface{}, string) + ResponseWithHeader func(int, interface{}, string) + Run func(string)