Documentation ¶
Index ¶
- Constants
- func GetContentType(ext string) (contentType string)
- func GetMinGZIPSize() int
- func SetMinGZIPSize(i int)
- type FileDownloadView
- type FullJSONView
- func (jv FullJSONView) ContentType(ctxt *web.Context) string
- func (jv FullJSONView) Publish(ctxt *web.Context) error
- func (jv FullJSONView) Render(ctxt *web.Context) ([]byte, error)
- func (jv FullJSONView) RenderString(ctxt *web.Context) (string, error)
- func (jv *FullJSONView) SetData(name string, value interface{})
- func (jv *FullJSONView) SetVMap(vmap ...mvc.VM)
- type HTMLView
- func (hv *HTMLView) ContentType(ctxt *web.Context) string
- func (hv *HTMLView) Publish(ctxt *web.Context) (err error)
- func (hv *HTMLView) Render(ctxt *web.Context) (b []byte, err error)
- func (hv *HTMLView) RenderString(ctxt *web.Context) (s string, err error)
- func (hv *HTMLView) SetData(name string, value interface{})
- func (hv *HTMLView) SetGetTmpl(f func(fmap template.FuncMap) (t *template.Template, err error))
- func (hv *HTMLView) SetVMap(vmap ...mvc.VM)
- func (hv *HTMLView) SetViewFunc(name string, f interface{})
- func (hv *HTMLView) SetViewFuncName(name string)
- type JSONView
- type MultiView
- func (mv *MultiView) ContentType(ctxt *web.Context) string
- func (mv *MultiView) Publish(ctxt *web.Context) (err error)
- func (mv *MultiView) Render(ctxt *web.Context) (b []byte, err error)
- func (mv *MultiView) RenderString(ctxt *web.Context) (s string, err error)
- func (mv *MultiView) SetData(name string, value interface{})
- func (mv *MultiView) SetGetTmpl(f func(fmap template.FuncMap) (t *template.Template, err error))
- func (mv *MultiView) SetVMap(vmap ...mvc.VM)
- func (mv *MultiView) SetViewFunc(name string, f interface{})
- func (mv *MultiView) SetViewFuncName(name string)
- type ResultView
- func (rv *ResultView) ContentType(ctxt *web.Context) string
- func (rv *ResultView) Publish(ctxt *web.Context) (err error)
- func (rv *ResultView) Render(ctxt *web.Context) (b []byte, err error)
- func (rv *ResultView) RenderString(ctxt *web.Context) (s string, err error)
- func (rv *ResultView) SetData(name string, value interface{})
- func (rv *ResultView) SetGetTmpl(f func(fmap template.FuncMap) (t *template.Template, err error))
- func (rv *ResultView) SetVMap(vmap ...mvc.VM)
- func (rv *ResultView) SetViewFunc(name string, f interface{})
- func (rv *ResultView) SetViewFuncName(name string)
Constants ¶
View Source
const DefaultMinGZIPSize = 1000
Variables ¶
This section is empty.
Functions ¶
func GetContentType ¶
func GetMinGZIPSize ¶
func GetMinGZIPSize() int
func SetMinGZIPSize ¶
func SetMinGZIPSize(i int)
Types ¶
type FileDownloadView ¶
func NewFileDownloadView ¶
func NewFileDownloadView(fpath string, fname string, ctype string) *FileDownloadView
func (*FileDownloadView) ContentType ¶
func (fv *FileDownloadView) ContentType(ctxt *web.Context) string
func (*FileDownloadView) Publish ¶
func (fv *FileDownloadView) Publish(ctxt *web.Context) (err error)
func (*FileDownloadView) Render ¶
func (fv *FileDownloadView) Render(ctxt *web.Context) ([]byte, error)
func (*FileDownloadView) RenderString ¶
func (fv *FileDownloadView) RenderString(ctxt *web.Context) (string, error)
type FullJSONView ¶
type FullJSONView JSONView
func NewFullJSONView ¶
func NewFullJSONView(vmap mvc.VM) FullJSONView
func (FullJSONView) ContentType ¶
func (jv FullJSONView) ContentType(ctxt *web.Context) string
func (FullJSONView) RenderString ¶
func (jv FullJSONView) RenderString(ctxt *web.Context) (string, error)
func (*FullJSONView) SetData ¶
func (jv *FullJSONView) SetData(name string, value interface{})
func (*FullJSONView) SetVMap ¶
func (jv *FullJSONView) SetVMap(vmap ...mvc.VM)
type HTMLView ¶
type HTMLView struct { mvc.VM GetTmpl func(fmap template.FuncMap) (t *template.Template, err error) // contains filtered or unexported fields }
func (*HTMLView) RenderString ¶
func (*HTMLView) SetGetTmpl ¶
func (*HTMLView) SetViewFunc ¶
func (*HTMLView) SetViewFuncName ¶
type JSONView ¶
func NewJSONView ¶
type MultiView ¶
type MultiView struct { mvc.VM GetTmpl func(fmap template.FuncMap) (t *template.Template, err error) // contains filtered or unexported fields }
func (*MultiView) RenderString ¶
func (*MultiView) SetGetTmpl ¶
func (*MultiView) SetViewFunc ¶
func (*MultiView) SetViewFuncName ¶
type ResultView ¶
type ResultView struct { mvc.VM GetTmpl func(fmap template.FuncMap) (t *template.Template, err error) // contains filtered or unexported fields }
func NewResultView ¶
func NewResultView(vmap mvc.VM) *ResultView
func (*ResultView) ContentType ¶
func (rv *ResultView) ContentType(ctxt *web.Context) string
func (*ResultView) RenderString ¶
func (rv *ResultView) RenderString(ctxt *web.Context) (s string, err error)
func (*ResultView) SetData ¶
func (rv *ResultView) SetData(name string, value interface{})
func (*ResultView) SetGetTmpl ¶
func (*ResultView) SetVMap ¶
func (rv *ResultView) SetVMap(vmap ...mvc.VM)
func (*ResultView) SetViewFunc ¶
func (rv *ResultView) SetViewFunc(name string, f interface{})
func (*ResultView) SetViewFuncName ¶
func (rv *ResultView) SetViewFuncName(name string)
Click to show internal directories.
Click to hide internal directories.