Documentation ¶
Index ¶
- Variables
- type ErrorHandler
- type HomeViewModel
- type Logger
- type Module
- func (m *Module) GetErrorHandler() ErrorHandler
- func (m *Module) GetGlobalTemplates() map[string][]byte
- func (m *Module) GetLogger() Logger
- func (m *Module) Home(ctx *fasthttp.RequestCtx)
- func (m *Module) SetGlobalTemplates(templates map[string][]byte)
- func (m *Module) SetRoutes(router *router.Router)
Constants ¶
This section is empty.
Variables ¶
View Source
var HomeRoute = "/"
Functions ¶
This section is empty.
Types ¶
type ErrorHandler ¶
type ErrorHandler interface {
Error(e error)
}
type HomeViewModel ¶
type HomeViewModel struct { Ctx *fasthttp.RequestCtx Flash *cbweb.Flash }
func (*HomeViewModel) GetMainTemplate ¶
func (t *HomeViewModel) GetMainTemplate() string
func (*HomeViewModel) GetMasterViewModel ¶
func (t *HomeViewModel) GetMasterViewModel() cbweb.DefaultMasterViewModel
func (*HomeViewModel) GetTemplates ¶
func (t *HomeViewModel) GetTemplates() []string
type Module ¶
type Module struct { Common *cbwebcommon.Module ErrorHandler ErrorHandler Logger Logger }
func (*Module) GetErrorHandler ¶
func (m *Module) GetErrorHandler() ErrorHandler
func (*Module) GetGlobalTemplates ¶
func (*Module) Home ¶
func (m *Module) Home(ctx *fasthttp.RequestCtx)
func (*Module) SetGlobalTemplates ¶
Click to show internal directories.
Click to hide internal directories.