home

package
v0.26.28 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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
	NavItems []cbweb.NavItem
	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 Logger

type Logger interface {
	InfoF(category string, message string, args ...interface{})
	DebugF(category string, message string, args ...interface{})
}

type Module

type Module struct {
	Common       *cbwebcommon.Module
	ErrorHandler ErrorHandler
	Logger       Logger
	NavItems     func(ctx *fasthttp.RequestCtx) []cbweb.NavItem
}

func (*Module) GetErrorHandler

func (m *Module) GetErrorHandler() ErrorHandler

func (*Module) GetGlobalTemplates

func (m *Module) GetGlobalTemplates() map[string][]byte

func (*Module) GetLogger

func (m *Module) GetLogger() Logger

func (*Module) Home

func (m *Module) Home(ctx *fasthttp.RequestCtx)

func (*Module) SetGlobalTemplates

func (m *Module) SetGlobalTemplates(templates map[string][]byte)

func (*Module) SetRoutes

func (m *Module) SetRoutes(router *router.Router)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL