Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLoadingString ¶
GetLoadingString sends an i18n string for "Loading..."
func RegisterTplConfFilter ¶
func RegisterTplConfFilter(f TplConfFilterFunc)
RegisterTplConfFilter registers a filter for modifying main Template Conf
Types ¶
type IndexHandler ¶
type IndexHandler struct {
// contains filtered or unexported fields
}
func NewIndexHandler ¶
func NewIndexHandler() *IndexHandler
func (*IndexHandler) ServeHTTP ¶
func (h *IndexHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type PublicHandler ¶
type PublicHandler struct {
// contains filtered or unexported fields
}
func NewPublicHandler ¶
func NewPublicHandler() *PublicHandler
func (*PublicHandler) ServeHTTP ¶
func (h *PublicHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP serve public link
type TplConf ¶
type TplConf struct { ApplicationTitle string Favicon string Rebase string ResourcesFolder string Theme string Version string ErrorMessage string Debug bool LoadingString string CustomHTMLHeader template.HTML StartParameters map[string]interface{} }
Data struct for main index page template
func FilterTplConf ¶
FilterTplConf applies registered filters on TplConf object
type TplConfFilterFunc ¶
TplConfFilterFunc takes a TplConf and modifies it
Click to show internal directories.
Click to hide internal directories.