Documentation
¶
Index ¶
- type IApi
- func (i *IApi) GetInt(name string) int
- func (i *IApi) GetString(name string) string
- func (c *IApi) Index()
- func (i *IApi) PostInt(name string) int
- func (i *IApi) PostString(name string) string
- func (i *IApi) Register(action string, f func()) *IApi
- func (c *IApi) Response(code int, result interface{}, message string)
- func (c *IApi) ResponseWithHeader(code int, result interface{}, message string)
- func (i *IApi) Run(action string)
- type IBase
- type ILogin
- type IUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IApi ¶
type IApi struct { Config config.IConfig TplEngine *template.TplEngine Module string Actions map[string]func() W http.ResponseWriter R *http.Request Header map[string]string Namespace string }
func (*IApi) PostString ¶
func (*IApi) ResponseWithHeader ¶
Click to show internal directories.
Click to hide internal directories.