Documentation ¶
Index ¶
- 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) GenerateTemplate(fileNames []string) (*templates.InheritanceMultiTemplate, error)
- func (m *Module) GetFiveHundredError() func(ctx *fasthttp.RequestCtx)
- func (m *Module) GetGlobalTemplates() map[string][]byte
- func (m *Module) SetDefaultHandlers()
- 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 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 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) 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) SetDefaultHandlers ¶
func (m *Module) SetDefaultHandlers()
func (*Module) SetGlobalTemplates ¶
Click to show internal directories.
Click to hide internal directories.