index

package
v2.0.9+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLoadingString

func GetLoadingString(lang string) string

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

func FilterTplConf(i *TplConf) *TplConf

FilterTplConf applies registered filters on TplConf object

type TplConfFilterFunc

type TplConfFilterFunc func(in *TplConf) *TplConf

TplConfFilterFunc takes a TplConf and modifies it

Jump to

Keyboard shortcuts

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