Documentation ¶
Index ¶
- type Output
- func (o *Output) GZIPGZIPJSONOK(code int, message string) error
- func (o *Output) GZIPJSON(code int, value interface{}) error
- func (o *Output) GZIPJSONERROR(code int, message, subCode string) error
- func (o *Output) GZIPJSONFail(code int, message string) error
- func (o *Output) GZIPJSONList(code int, list interface{}) error
- func (o *Output) GZIPJSONOK(code int, message string) error
- func (o *Output) GZIPJSONObject(code int, info interface{}) error
- func (o *Output) GZIPJSONPager(code int, list interface{}, pager interface{}) error
- func (o *Output) HTML(code int, name string, value interface{}) error
- func (o *Output) HasOutput() bool
- func (o *Output) Header(key, value string)
- func (o *Output) Init(writer http.ResponseWriter, in *input.Input, templ *template.Template)
- func (o *Output) JSON(code int, value interface{}) error
- func (o *Output) JSONERROR(code int, message, subCode string) error
- func (o *Output) JSONFail(code int, message string) error
- func (o *Output) JSONList(code int, list interface{}) error
- func (o *Output) JSONObject(code int, info interface{}) error
- func (o *Output) JSONP(code int, value interface{}) error
- func (o *Output) JSONPager(code int, list interface{}, pager interface{}) error
- func (o *Output) NotFound()
- func (o *Output) Redirect(code int, location string)
- func (o *Output) Render(code int, value interface{}, bind binding.Rendering) error
- func (o *Output) SuccessGZipJSON(data lib.InRow) error
- func (o *Output) SuccessJSON(data lib.InRow) error
- func (o *Output) Text(code int, value interface{}) error
- func (o *Output) XML(code int, value interface{}) error
- func (o *Output) YAML(code int, value interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Output ¶
type Output struct {
// contains filtered or unexported fields
}
Output
func (*Output) GZIPGZIPJSONOK ¶ added in v0.0.19
GZIPJSONOK
func (*Output) GZIPJSONERROR ¶
GZIPJSONERROR
func (*Output) GZIPJSONFail ¶
GZIPJSONFail
func (*Output) GZIPJSONList ¶
GZIPJSONList
func (*Output) GZIPJSONObject ¶
GZIPJSONObject
func (*Output) GZIPJSONPager ¶
GZIPJSONPager
func (*Output) JSONObject ¶
JSONObject
func (*Output) SuccessGZipJSON ¶
SuccessGZipJSON 成功输出json
Click to show internal directories.
Click to hide internal directories.