Documentation
¶
Index ¶
- func Exam(ctx context.Context) *exam.Exam
- func HTTPValuesContext(ctx context.Context, hv *HttpValues) context.Context
- func Question(ctx context.Context) *question.Question
- func Release(c *Context)
- func Session(ctx context.Context) *session.Session
- func User(ctx context.Context) *user.User
- type Context
- func (ctx *Context) BindJson(dst interface{}) error
- func (ctx *Context) Context() context.Context
- func (ctx *Context) Cookie(name string) (string, error)
- func (ctx *Context) Created(location string, data interface{}) error
- func (ctx *Context) Exam() *exam.Exam
- func (ctx *Context) IP() string
- func (ctx *Context) Json(status int, data interface{}) error
- func (ctx *Context) OK(data interface{}) error
- func (ctx *Context) Param(p string) string
- func (ctx *Context) PermanentRedirect(url string) error
- func (ctx *Context) Question() *question.Question
- func (ctx *Context) RemoveCookie(name string)
- func (ctx *Context) Request() *http.Request
- func (ctx *Context) Response() http.ResponseWriter
- func (ctx *Context) SendStatus(status int) error
- func (ctx *Context) Session() *session.Session
- func (ctx *Context) SetCookie(name, value string, maxAge int, path, domain string, secure, httpOnly bool, ...)
- func (ctx *Context) SetSecureCookie(name, value string, maxAge int, path, domain string)
- func (ctx *Context) Signed() bool
- func (ctx *Context) String(status int, data string) error
- func (ctx *Context) TemporaryRedirect(url string) error
- func (ctx *Context) User() *user.User
- func (ctx *Context) WithExam(e *exam.Exam) *Context
- func (ctx *Context) WithQuestion(q *question.Question) *Context
- func (ctx *Context) WithSession(s *session.Session) *Context
- func (ctx *Context) WithUser(u *user.User) *Context
- type HttpValues
- type Map
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPValuesContext ¶
func HTTPValuesContext(ctx context.Context, hv *HttpValues) context.Context
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (*Context) PermanentRedirect ¶
func (*Context) RemoveCookie ¶
func (*Context) Response ¶
func (ctx *Context) Response() http.ResponseWriter
func (*Context) SendStatus ¶
func (*Context) SetSecureCookie ¶
func (*Context) TemporaryRedirect ¶
type HttpValues ¶
func HTTPValues ¶
func HTTPValues(ctx context.Context) *HttpValues
Click to show internal directories.
Click to hide internal directories.