Documentation
¶
Index ¶
- Constants
- Variables
- func CustomErrorHandler(err error, c echo.Context)
- func ErrorNotice(title, text string) string
- func FailRequestWithError(c echo.Context, msg string, err error, redirUrl string) error
- func InfoNotice(title, text string) string
- func InitTemplates()
- func NoticeParam(kind, title, text string) string
- func RenderTemplate(c echo.Context, tmplPath string, d Data) error
- func SuccessNotice(title, text string) string
- type Data
- type Notice
Constants ¶
View Source
const ( PARAM_ERR_CODE = "code" PARAM_ERR_MSG = "msg" )
View Source
const ( NTC_PARAM = "ntc" NTC_TYPE_INFO = "info" NTC_TYPE_ERROR = "error" NTC_TYPE_WARNING = "warn" NTC_TYPE_SUCCESS = "succ" )
View Source
const ( TEMPLATE_DIR = "tmpl/" TMP_ROOT = "root.twig" TMP_NOTICE = "notice.twig" TMP_ERR_DEBUG = "error/debug.twig" TMP_ERROR = "error/http_error.twig" TMP_LANG_DETAIL = "lang/detail.twig" TMP_LANG_UPDATE = "lang/update.twig" TMP_WORD_UPDATE = "word/update.twig" )
Variables ¶
View Source
var G_showDebug = false
Functions ¶
func CustomErrorHandler ¶
func ErrorNotice ¶
func FailRequestWithError ¶
func InfoNotice ¶
func InitTemplates ¶
func InitTemplates()
func NoticeParam ¶
func SuccessNotice ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.