Documentation ¶
Index ¶
- type DataTable
- type DefaultErrorHandler
- type ErrorHandler
- type FileOpener
- type Logger
- type Module
- func (m *Module) DefaultFileServer(ctx *fasthttp.RequestCtx)
- func (m *Module) DefaultFiveHundredError(ctx *fasthttp.RequestCtx)
- func (m *Module) DefaultFourOFourError(ctx *fasthttp.RequestCtx)
- func (m *Module) ExecuteViewModel(ctx *fasthttp.RequestCtx, viewModel cbweb.ExecutableViewModel) error
- func (m *Module) GenerateTemplate(fileNames []string) (*templates.InheritanceMultiTemplate, error)
- func (m *Module) GetFiveHundredError() func(ctx *fasthttp.RequestCtx)
- func (m *Module) GetGlobalTemplates() map[string][]byte
- func (m *Module) SetDefaults()
- func (m *Module) SetGlobalTemplates(templates map[string][]byte)
- func (m *Module) SetRoutes(routes *router.Router)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataTable ¶ added in v0.7.0
type DataTable struct { TableId template.JS Columns []string Data [][]interface{} AjaxRoute string }
func (*DataTable) GetAjaxRoute ¶ added in v0.7.0
func (*DataTable) GetColumns ¶ added in v0.7.0
func (*DataTable) GetColumnsJson ¶ added in v0.7.0
func (*DataTable) GetDataJson ¶ added in v0.7.0
func (*DataTable) GetTableId ¶ added in v0.7.0
type DefaultErrorHandler ¶
type DefaultErrorHandler struct{}
func (DefaultErrorHandler) Error ¶
func (d DefaultErrorHandler) Error(e error)
type ErrorHandler ¶
type ErrorHandler interface { Error(e error) Recover() }
type Module ¶
type Module struct { Env string Version string BrandName string TemplateCache cbweb.CacheProvider FileServer func(ctx *fasthttp.RequestCtx) FourOFourError func(ctx *fasthttp.RequestCtx) FiveHundredError func(ctx *fasthttp.RequestCtx) TemplateFuncs template.FuncMap TemplatesBox FileOpener WebAssets FileOpener ErrorHandler ErrorHandler Logger Logger // contains filtered or unexported fields }
func (*Module) DefaultFileServer ¶
func (m *Module) DefaultFileServer(ctx *fasthttp.RequestCtx)
func (*Module) DefaultFiveHundredError ¶
func (m *Module) DefaultFiveHundredError(ctx *fasthttp.RequestCtx)
func (*Module) DefaultFourOFourError ¶
func (m *Module) DefaultFourOFourError(ctx *fasthttp.RequestCtx)
func (*Module) ExecuteViewModel ¶ added in v0.8.0
func (m *Module) ExecuteViewModel(ctx *fasthttp.RequestCtx, viewModel cbweb.ExecutableViewModel) error
func (*Module) GenerateTemplate ¶
func (m *Module) GenerateTemplate(fileNames []string) (*templates.InheritanceMultiTemplate, error)
func (*Module) GetFiveHundredError ¶
func (m *Module) GetFiveHundredError() func(ctx *fasthttp.RequestCtx)
func (*Module) GetGlobalTemplates ¶
func (*Module) SetDefaults ¶ added in v0.6.0
func (m *Module) SetDefaults()
func (*Module) SetGlobalTemplates ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.