Documentation ¶
Index ¶
- type Context
- type Input
- func (i *Input) BaseUrl() string
- func (i *Input) ClientIp() string
- func (i *Input) Data() map[string][]string
- func (i *Input) File(key string) (multipart.File, *multipart.FileHeader, error)
- func (i *Input) GetBool(key string) bool
- func (i *Input) GetFloat64(key string) float64
- func (i *Input) GetHeader(key string) string
- func (i *Input) GetInt(key string) int
- func (i *Input) GetInt64(key string) int64
- func (i *Input) Headers() map[string][]string
- func (i *Input) Is(method string) bool
- func (i *Input) IsMultipartForm() bool
- func (i *Input) Method() string
- func (i *Input) Path() string
- func (i *Input) Post(key string) string
- func (i *Input) PostData() map[string][]string
- func (i *Input) Query(key string) string
- func (i *Input) QueryData() map[string][]string
- func (i *Input) Uri() string
- type Output
- func (o *Output) Data() interface{}
- func (o *Output) End()
- func (o *Output) InternalError()
- func (o *Output) PageNotFound()
- func (o *Output) Redirect(url string)
- func (o *Output) Response() http.ResponseWriter
- func (o *Output) SetData(data interface{}) *Output
- func (o *Output) SetHeader(key string, value string) *Output
- func (o *Output) SetStatus(code int) *Output
- func (o *Output) Status() int
- func (o *Output) ToHtml()
- func (o *Output) ToJson()
- func (o *Output) ToString()
- func (o *Output) ToXml()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func NewContext ¶
func (*Context) SetViewSwitch ¶
func (*Context) ViewDisabled ¶
type Input ¶
type Input struct {
// contains filtered or unexported fields
}
func (*Input) GetFloat64 ¶
func (*Input) IsMultipartForm ¶
type Output ¶
type Output struct {
// contains filtered or unexported fields
}
func NewOutput ¶
func NewOutput(response http.ResponseWriter) *Output
func (*Output) InternalError ¶
func (o *Output) InternalError()
func (*Output) PageNotFound ¶
func (o *Output) PageNotFound()
func (*Output) Response ¶
func (o *Output) Response() http.ResponseWriter
Click to show internal directories.
Click to hide internal directories.