Documentation ¶
Index ¶
- func InitController(name string, controller interface{})
- func InitServer()
- func Run()
- func RunWithSignal()
- type Context
- func (c *Context) Access(access uint) bool
- func (c *Context) Call()
- func (c *Context) CheckStatic(env *environment.Env, path string) (string, bool)
- func (c *Context) Error(status int, iface interface{})
- func (c *Context) IsGranted() bool
- func (c *Context) ParseUrl()
- func (c *Context) UploadFile(postName string) (filename string, error bool)
- func (c *Context) Write(iface interface{})
- type ContextInterface
- type Info
- type TokenException
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitController ¶
func InitController(name string, controller interface{})
func InitServer ¶
func InitServer()
func RunWithSignal ¶
func RunWithSignal()
Types ¶
type Context ¶
type Context struct { Request *http.Request Response http.ResponseWriter Session *session.Session Path string Params map[string]string Method string Data io.ReadCloser Query url.Values Handle *Info }
func (*Context) CheckStatic ¶ added in v0.0.5
func (*Context) UploadFile ¶ added in v0.0.10
type ContextInterface ¶
type ContextInterface interface {
SetContext(c *Context)
}
type TokenException ¶
type TokenException struct { Error string `json:"error"` ErrorDescription string `json:"error_description"` }
func (*TokenException) Marshal ¶
func (t *TokenException) Marshal() string
Click to show internal directories.
Click to hide internal directories.