common

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorHandler

type ErrorHandler interface {
	Error(e error)
}

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
}

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) 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