Documentation ¶
Index ¶
- func Delete(key interface{})
- func Get(key interface{}) interface{}
- func Set(key interface{}, value interface{})
- type Context
- type Env
- func (e *Env) Finish()
- func (e *Env) Header() http.Header
- func (e *Env) IsFinished() bool
- func (e *Env) Redirect(url string, status int)
- func (e *Env) SetContentJson()
- func (e *Env) SetContentType(tp string)
- func (e *Env) SetCookie(c *http.Cookie)
- func (e *Env) SetStatus(status int)
- func (e *Env) Write(v interface{})
- func (e *Env) WriteBuffer(data []byte)
- func (e *Env) WriteError(status int, err error)
- func (e *Env) WriteString(data string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Env ¶
type Env struct { Request *http.Request Status int //context for current request Ctx Context //session for current request, Session *session.Session // contains filtered or unexported fields }
func (*Env) IsFinished ¶
func (*Env) SetContentJson ¶
func (e *Env) SetContentJson()
func (*Env) SetContentType ¶
func (*Env) WriteBuffer ¶
func (*Env) WriteError ¶
func (*Env) WriteString ¶
Click to show internal directories.
Click to hide internal directories.