Versions in this module Expand all Collapse all v1 v1.0.47 Feb 6, 2024 Changes in this version + var PageTemplates = map[string]string + var Themes = map[string]interface + type Args struct + ActionEndpoint string + Authenticated bool + CustomCSSEnabled bool + CustomJsEnabled bool + Data map[string]interface{} + LogoDescription string + LogoURL string + Message string + MessageType string + MetaAuthor string + MetaDescription string + MetaTitle string + MfaEnabled bool + NavItems []*NavigationItem + PageTitle string + PasswordRecoveryEnabled bool + PrivateLinks []Link + PublicLinks []Link + Realms []UserRealm + RegistrationEnabled bool + func (args *Args) AddFrontendLinks(arr []string) + func (args *Args) BaseURL(s string) + type Factory struct + ActionEndpoint string + CustomCSSPath string + CustomJsPath string + LogoDescription string + LogoURL string + MetaAuthor string + MetaDescription string + MetaTitle string + MfaEnabled bool + PasswordRecoveryEnabled bool + PrivateLinks []Link + PublicLinks []Link + Realms []UserRealm + RegistrationEnabled bool + Templates map[string]*Template + Title string + func NewFactory() *Factory + func (f *Factory) AddBuiltinTemplate(name string) error + func (f *Factory) AddBuiltinTemplates() error + func (f *Factory) AddTemplate(s, tp string) error + func (f *Factory) DeleteTemplates() + func (f *Factory) GetArgs() *Args + func (f *Factory) Render(name string, args *Args) (*bytes.Buffer, error) + type Link struct + IconEnabled bool + IconName string + Link string + OpenNewWindow bool + Style string + Target string + TargetEnabled bool + Title string + type NavigationItem struct + Active bool + IconName string + Name string + Path string + type Parameters struct + AllowRoleSelection bool + AutoRedirectURL string + CustomCSSPath string + CustomHTMLHeaderPath string + CustomJsPath string + DisabledPages map[string]bool + Language string + LogoDescription string + LogoURL string + MetaAuthor string + MetaDescription string + MetaTitle string + PasswordRecoveryEnabled bool + PrivateLinks []Link + Realms []UserRealm + StaticAssets []StaticAsset + Templates map[string]string + Theme string + Title string + func (p *Parameters) DisablePage(args []string) error + func (p *Parameters) GetNavigationItems(s string) []*NavigationItem + func (p *Parameters) IsDisabledPage(s string) bool + type StaticAsset struct + Checksum string + Content string + ContentType string + EncodedContent string + FsPath string + Path string + Restricted bool + type StaticAssetLibrary struct + var StaticAssets *StaticAssetLibrary + func NewStaticAssetLibrary() (*StaticAssetLibrary, error) + func (sal *StaticAssetLibrary) AddAsset(path, contentType, fsPath string) error + func (sal *StaticAssetLibrary) GetAsset(path string) (*StaticAsset, error) + type Template struct + Alias string + Path string + Template *template.Template + func NewTemplate(s, tp string) (*Template, error) + type UserRealm struct + Label string + Name string