Documentation ¶
Index ¶
- type Enjin
- func (e *Enjin) ApplyPageContextUpdaters(r *http.Request, pages ...feature.Page)
- func (e *Enjin) Connect(signal signaling.Signal, handle string, l signaling.Listener, ...)
- func (e *Enjin) Consoles() (consoles map[feature.Tag]feature.Console)
- func (e *Enjin) ContentSecurityPolicy() (handler *csp.PolicyHandler)
- func (e *Enjin) Context(r *http.Request) (ctx context.Context)
- func (e *Enjin) CreateNonce(key string) (value string)
- func (e *Enjin) CreateToken(key string) (value, shasum string)
- func (e *Enjin) CreateTokenWith(key string, duration time.Duration) (value, shasum string)
- func (e *Enjin) DB(tag string) (db feature.DataBase, err error)
- func (e *Enjin) Disconnect(signal signaling.Signal, handle string)
- func (e *Enjin) Domains() (domains []string)
- func (e *Enjin) Emit(signal signaling.Signal, tag string, argv ...interface{}) (stopped bool)
- func (e *Enjin) Features() (cache *feature.FeaturesCache)
- func (e *Enjin) FinalizeServeRequest(w http.ResponseWriter, r *http.Request) (modified *http.Request)
- func (e *Enjin) FindAllUserActions() (list feature.Actions)
- func (e *Enjin) FindEmailAccount(account string) (emailSender feature.EmailSender)
- func (e *Enjin) FindFile(path string) (data []byte, mime string, err error)
- func (e *Enjin) FindPage(r *http.Request, tag language.Tag, url string) (p feature.Page)
- func (e *Enjin) FindPageStub(shasum string) (stub *feature.PageStub)
- func (e *Enjin) FindRedirection(url string) (p feature.Page)
- func (e *Enjin) FindTranslationUrls(url string) (pages map[language.Tag]string)
- func (e *Enjin) FindTranslations(url string) (pages feature.Pages)
- func (e *Enjin) GetApplyMiddlewares() []feature.ApplyMiddleware
- func (e *Enjin) GetAuthProviders() []feature.AuthProvider
- func (e *Enjin) GetContentSecurityPolicyModifiers() []feature.ContentSecurityPolicyModifier
- func (e *Enjin) GetDataRestrictionHandlers() []feature.DataRestrictionHandler
- func (e *Enjin) GetDatabases() []feature.DatabaseFeature
- func (e *Enjin) GetEmailSenders() []feature.EmailSender
- func (e *Enjin) GetEnjinContextProvider() []feature.EnjinContextProvider
- func (e *Enjin) GetFileProviders() []feature.FileProvider
- func (e *Enjin) GetFinalizeServePagesFeatures() []feature.FinalizeServeRequestFeature
- func (e *Enjin) GetFormat(name string) (format feature.PageFormat)
- func (e *Enjin) GetFormatProviders() []feature.PageFormatProvider
- func (e *Enjin) GetFuncMapProviders() []feature.FuncMapProvider
- func (e *Enjin) GetHeadersModifiers() []feature.HeadersModifier
- func (e *Enjin) GetLocaleHandler() feature.LocaleHandler
- func (e *Enjin) GetLocalesProviders() []feature.LocalesProvider
- func (e *Enjin) GetMenuProviders() []feature.MenuProvider
- func (e *Enjin) GetOutputTransformers() []feature.OutputTransformer
- func (e *Enjin) GetOutputTranslators() []feature.OutputTranslator
- func (e *Enjin) GetPageContextFieldsProviders() []feature.PageContextFieldsProvider
- func (e *Enjin) GetPageContextModifiers() []feature.PageContextModifier
- func (e *Enjin) GetPageContextParsersProviders() []feature.PageContextParsersProvider
- func (e *Enjin) GetPageContextProviders() []feature.PageContextProvider
- func (e *Enjin) GetPageContextUpdaters() []feature.PageContextUpdater
- func (e *Enjin) GetPageProviders() []feature.PageProvider
- func (e *Enjin) GetPageRestrictionHandlers() []feature.PageRestrictionHandler
- func (e *Enjin) GetPageShortcodeProcessors() []feature.PageShortcodeProcessor
- func (e *Enjin) GetPageTypeProcessors() []feature.PageTypeProcessor
- func (e *Enjin) GetPanicHandler() feature.PanicHandler
- func (e *Enjin) GetPermissionsPolicyModifiers() []feature.PermissionsPolicyModifier
- func (e *Enjin) GetPrepareServePagesFeatures() []feature.PrepareServePagesFeature
- func (e *Enjin) GetProcessors() []feature.Processor
- func (e *Enjin) GetPublicAccess() (actions feature.Actions)
- func (e *Enjin) GetQueryIndexFeatures() []feature.QueryIndexFeature
- func (e *Enjin) GetRequestFilters() []feature.RequestFilter
- func (e *Enjin) GetRequestModifiers() []feature.RequestModifier
- func (e *Enjin) GetRequestRewriters() []feature.RequestRewriter
- func (e *Enjin) GetRoutePagesHandler() feature.RoutePagesHandler
- func (e *Enjin) GetServePagesHandler() feature.ServePagesHandler
- func (e *Enjin) GetServePathFeatures() []feature.ServePathFeature
- func (e *Enjin) GetServiceListener() feature.ServiceListener
- func (e *Enjin) GetServiceLogHandler() feature.ServiceLogHandler
- func (e *Enjin) GetServiceLoggers() []feature.ServiceLogger
- func (e *Enjin) GetTemplatePartial(block, position, name string) (tmpl string, ok bool)
- func (e *Enjin) GetTemplatePartialsProvider() []feature.TemplatePartialsProvider
- func (e *Enjin) GetTheme() (t feature.Theme, err error)
- func (e *Enjin) GetThemeName() (name string)
- func (e *Enjin) GetThemeNamed(name string) (t feature.Theme, err error)
- func (e *Enjin) GetThemeRenderer(ctx context.Context) (renderer feature.ThemeRenderer)
- func (e *Enjin) GetThemeRenderers() []feature.ThemeRenderer
- func (e *Enjin) GetUseMiddlewares() []feature.UseMiddleware
- func (e *Enjin) GetUserActionsProviders() []feature.UserActionsProvider
- func (e *Enjin) Headers() (headers []headers.ModifyHeadersFn)
- func (e *Enjin) HotReloading() (enabled bool)
- func (e *Enjin) ListFormats() (names []string)
- func (e *Enjin) ListPageContextFields() (kebabs []string)
- func (e *Enjin) ListTemplatePartials(block, position string) (names []string)
- func (e *Enjin) MakeFuncMap(ctx context.Context) (fm feature.FuncMap)
- func (e *Enjin) MakeLanguagePrinter(requested string) (tag language.Tag, printer *message.Printer)
- func (e *Enjin) MakePageContextField(key string, r *http.Request) (field *page_fields.Field, ok bool)
- func (e *Enjin) MakePageContextFields(r *http.Request) (list page_fields.Fields)
- func (e *Enjin) MatchFormat(filename string) (format feature.PageFormat, match string)
- func (e *Enjin) MustDB(tag string) (db feature.DataBase)
- func (e *Enjin) MustGetTheme() (t feature.Theme)
- func (e *Enjin) MustGetThemeNamed(name string) (t feature.Theme)
- func (e *Enjin) NewSyncLocker(tag feature.Tag, key string, store feature.KeyValueStore) (l feature.SyncLocker)
- func (e *Enjin) NewSyncLockerWith(tag feature.Tag, key string, store feature.KeyValueStore, ...) (l feature.SyncLocker)
- func (e *Enjin) NewSyncRWLocker(tag feature.Tag, key string, readStore, writeStore feature.KeyValueStore) (l feature.SyncRWLocker)
- func (e *Enjin) NewSyncRWLockerWith(tag feature.Tag, key string, readStore, writeStore feature.KeyValueStore, ...) (l feature.SyncRWLocker)
- func (e *Enjin) Notify(tag string)
- func (e *Enjin) NotifyF(tag, format string, argv ...interface{})
- func (e *Enjin) PageContextParsers() (parsers page_fields.Parsers)
- func (e *Enjin) Pages() (pages map[string]feature.Page)
- func (e *Enjin) PerformLookup(format string, argv ...interface{}) (columns []string, results []context.Context, err error)
- func (e *Enjin) PerformQuery(r *http.Request, format string, argv ...interface{}) (stubs feature.PageStubs, err error)
- func (e *Enjin) PerformQueryPages(r *http.Request, format string, argv ...interface{}) (pages feature.Pages, err error)
- func (e *Enjin) PermissionsPolicy() (handler *permissions.PolicyHandler)
- func (e *Enjin) Prefix() (prefix string)
- func (e *Enjin) Processors() (processors map[string]feature.ReqProcessFn)
- func (e *Enjin) PublicFileSystems() (registry fs.Registry)
- func (e *Enjin) PublicUserActions() (actions feature.Actions)
- func (e *Enjin) ReloadLocales()
- func (e *Enjin) Router() (router *chi.Mux)
- func (e *Enjin) Run(argv []string) (err error)
- func (e *Enjin) Self() (self interface{})
- func (e *Enjin) SendEmail(r *http.Request, account string, message *gomail.Message) (err error)
- func (e *Enjin) Serve204(w http.ResponseWriter, r *http.Request)
- func (e *Enjin) Serve400(w http.ResponseWriter, r *http.Request)
- func (e *Enjin) Serve401(w http.ResponseWriter, r *http.Request)
- func (e *Enjin) Serve403(w http.ResponseWriter, r *http.Request)
- func (e *Enjin) Serve404(w http.ResponseWriter, r *http.Request)
- func (e *Enjin) Serve405(w http.ResponseWriter, r *http.Request)
- func (e *Enjin) Serve500(w http.ResponseWriter, r *http.Request)
- func (e *Enjin) ServeBasic401(w http.ResponseWriter, r *http.Request)
- func (e *Enjin) ServeData(data []byte, mime string, w http.ResponseWriter, r *http.Request)
- func (e *Enjin) ServeForbidden(w http.ResponseWriter, r *http.Request)
- func (e *Enjin) ServeHtmlRedirect(destination string, w http.ResponseWriter, r *http.Request)
- func (e *Enjin) ServeInternalServerError(w http.ResponseWriter, r *http.Request)
- func (e *Enjin) ServeJSON(v interface{}, w http.ResponseWriter, r *http.Request) (err error)
- func (e *Enjin) ServeNotFound(w http.ResponseWriter, r *http.Request)
- func (e *Enjin) ServePage(p feature.Page, w http.ResponseWriter, r *http.Request) (err error)
- func (e *Enjin) ServePath(urlPath string, w http.ResponseWriter, r *http.Request) (err error)
- func (e *Enjin) ServeRedirect(destination string, w http.ResponseWriter, r *http.Request)
- func (e *Enjin) ServeRedirectHomePath(w http.ResponseWriter, r *http.Request)
- func (e *Enjin) ServeStatusJSON(status int, v interface{}, w http.ResponseWriter, r *http.Request) (err error)
- func (e *Enjin) ServeStatusPage(status int, w http.ResponseWriter, r *http.Request)
- func (e *Enjin) ServerName() (name string)
- func (e *Enjin) ServiceInfo() (scheme, listen string, port int)
- func (e *Enjin) SetupRootEnjin(ctx *cli.Context) (err error)
- func (e *Enjin) Shutdown()
- func (e *Enjin) SiteCopyrightName() (name string)
- func (e *Enjin) SiteCopyrightNotice() (notice string)
- func (e *Enjin) SiteCopyrightYear() (year string)
- func (e *Enjin) SiteDefaultLanguage() (tag language.Tag)
- func (e *Enjin) SiteLanguageCatalog() (c catalog.Catalog)
- func (e *Enjin) SiteLanguageDisplayName(tag language.Tag) (name string, ok bool)
- func (e *Enjin) SiteLanguageMode() (mode lang.Mode)
- func (e *Enjin) SiteLocales() (locales cllang.Tags)
- func (e *Enjin) SiteName() (name string)
- func (e *Enjin) SiteSupportsLanguage(tag language.Tag) (supported bool)
- func (e *Enjin) SiteTag() (tag string)
- func (e *Enjin) SiteTagLine() (tagLine string)
- func (e *Enjin) Slugsums() (enabled bool)
- func (e *Enjin) StartupString() string
- func (e *Enjin) String() string
- func (e *Enjin) Theme() (theme string)
- func (e *Enjin) ThemeNames() (names []string)
- func (e *Enjin) Theming() (theming map[string]feature.Theme)
- func (e *Enjin) Transformers() (transformers map[string]feature.TransformOutputFn)
- func (e *Enjin) TranslateShortcodes(content string, ctx context.Context) (modified string)
- func (e *Enjin) Translators() (translators map[string]feature.TranslateOutputFn)
- func (e *Enjin) ValidateUserRequest(action feature.Action, w http.ResponseWriter, r *http.Request) (valid bool)
- func (e *Enjin) VerifyNonce(key, value string) (valid bool)
- func (e *Enjin) VerifyToken(key, value string) (valid bool)
- type EnjinBuilder
- func (eb *EnjinBuilder) AddCommands(commands ...*cli.Command) feature.Builder
- func (eb *EnjinBuilder) AddConsole(c feature.Console) feature.Builder
- func (eb *EnjinBuilder) AddCspModifierFn(tag string, fn feature.CspModifierFn) feature.Builder
- func (eb *EnjinBuilder) AddDomains(domains ...string) feature.Builder
- func (eb *EnjinBuilder) AddFeature(features ...feature.Feature) feature.Builder
- func (eb *EnjinBuilder) AddFlags(flags ...cli.Flag) feature.Builder
- func (eb *EnjinBuilder) AddHtmlHeadTag(name string, attr map[string]string) feature.Builder
- func (eb *EnjinBuilder) AddModifyHeadersFn(fn headers.ModifyHeadersFn) feature.Builder
- func (eb *EnjinBuilder) AddNotifyHook(name string, hook feature.NotifyHook) feature.Builder
- func (eb *EnjinBuilder) AddOutputTransformer(mime string, filter feature.TransformOutputFn) feature.Builder
- func (eb *EnjinBuilder) AddOutputTranslator(mime string, filter feature.TranslateOutputFn) feature.Builder
- func (eb *EnjinBuilder) AddPageFromString(path, raw string) feature.Builder
- func (eb *EnjinBuilder) AddPreset(presets ...feature.Preset) feature.Builder
- func (eb *EnjinBuilder) AddRouteProcessor(route string, processor feature.ReqProcessFn) feature.Builder
- func (eb *EnjinBuilder) AddTheme(t feature.Theme) feature.Builder
- func (eb *EnjinBuilder) AddUserAction(actions ...feature.Action) feature.Builder
- func (eb *EnjinBuilder) Build() feature.Runner
- func (eb *EnjinBuilder) Features() (cache *feature.FeaturesCache)
- func (eb *EnjinBuilder) HotReload(enabled bool) feature.Builder
- func (eb *EnjinBuilder) IgnoreSlugsums() *EnjinBuilder
- func (eb *EnjinBuilder) IncludeEnjin(enjins ...feature.Builder) feature.Builder
- func (eb *EnjinBuilder) MakeEnvKey(name string) (key string)
- func (eb *EnjinBuilder) MakeEnvKeys(names ...string) (keys []string)
- func (eb *EnjinBuilder) PrependFeature(f feature.Feature) feature.Builder
- func (eb *EnjinBuilder) RegisterPublicFileSystem(mount string, filesystems ...fs.FileSystem)
- func (eb *EnjinBuilder) RegisterTemplatePartial(block, position, name, tmpl string) (err error)
- func (eb *EnjinBuilder) Set(key string, value interface{}) feature.Builder
- func (eb *EnjinBuilder) SetAlwaysHtmlRedirect(always bool) feature.Builder
- func (eb *EnjinBuilder) SetEnjinTextFn(fn feature.EnjinTextFn) feature.Builder
- func (eb *EnjinBuilder) SetHtmlRedirectDelay(seconds int) feature.Builder
- func (eb *EnjinBuilder) SetPublicAccess(actions ...feature.Action) feature.Builder
- func (eb *EnjinBuilder) SetStatusPage(status int, path string) feature.Builder
- func (eb *EnjinBuilder) SetTheme(name string) feature.Builder
- func (eb *EnjinBuilder) SiteCopyrightName(name string) feature.Builder
- func (eb *EnjinBuilder) SiteCopyrightNotice(notice string) feature.Builder
- func (eb *EnjinBuilder) SiteCopyrightYear(year string) feature.Builder
- func (eb *EnjinBuilder) SiteDefaultLanguage(tag language.Tag) feature.Builder
- func (eb *EnjinBuilder) SiteLanguageDisplayNames(names map[language.Tag]string) feature.Builder
- func (eb *EnjinBuilder) SiteLanguageMode(mode lang.Mode) feature.Builder
- func (eb *EnjinBuilder) SiteName(name string) feature.Builder
- func (eb *EnjinBuilder) SiteSupportedLanguages(tags ...language.Tag) feature.Builder
- func (eb *EnjinBuilder) SiteTag(tag string) feature.Builder
- func (eb *EnjinBuilder) SiteTagLine(tagLine string) feature.Builder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Enjin ¶
type Enjin struct {
// contains filtered or unexported fields
}
func (*Enjin) ApplyPageContextUpdaters ¶ added in v0.5.8
func (*Enjin) ContentSecurityPolicy ¶
func (e *Enjin) ContentSecurityPolicy() (handler *csp.PolicyHandler)
func (*Enjin) CreateNonce ¶ added in v0.5.0
func (*Enjin) CreateToken ¶ added in v0.5.0
func (*Enjin) CreateTokenWith ¶ added in v0.5.0
func (*Enjin) Disconnect ¶ added in v0.2.2
func (*Enjin) Features ¶
func (e *Enjin) Features() (cache *feature.FeaturesCache)
func (*Enjin) FinalizeServeRequest ¶ added in v0.5.0
func (*Enjin) FindAllUserActions ¶ added in v0.2.0
func (*Enjin) FindEmailAccount ¶ added in v0.1.0
func (e *Enjin) FindEmailAccount(account string) (emailSender feature.EmailSender)
func (*Enjin) FindPageStub ¶ added in v0.2.12
func (*Enjin) FindTranslationUrls ¶ added in v0.5.0
func (*Enjin) FindTranslations ¶
func (*Enjin) GetApplyMiddlewares ¶ added in v0.5.0
func (e *Enjin) GetApplyMiddlewares() []feature.ApplyMiddleware
func (*Enjin) GetAuthProviders ¶ added in v0.5.0
func (e *Enjin) GetAuthProviders() []feature.AuthProvider
func (*Enjin) GetContentSecurityPolicyModifiers ¶ added in v0.5.0
func (e *Enjin) GetContentSecurityPolicyModifiers() []feature.ContentSecurityPolicyModifier
func (*Enjin) GetDataRestrictionHandlers ¶ added in v0.5.0
func (e *Enjin) GetDataRestrictionHandlers() []feature.DataRestrictionHandler
func (*Enjin) GetDatabases ¶ added in v0.5.0
func (e *Enjin) GetDatabases() []feature.DatabaseFeature
func (*Enjin) GetEmailSenders ¶ added in v0.5.0
func (e *Enjin) GetEmailSenders() []feature.EmailSender
func (*Enjin) GetEnjinContextProvider ¶ added in v0.5.0
func (e *Enjin) GetEnjinContextProvider() []feature.EnjinContextProvider
func (*Enjin) GetFileProviders ¶ added in v0.5.0
func (e *Enjin) GetFileProviders() []feature.FileProvider
func (*Enjin) GetFinalizeServePagesFeatures ¶ added in v0.5.0
func (e *Enjin) GetFinalizeServePagesFeatures() []feature.FinalizeServeRequestFeature
func (*Enjin) GetFormatProviders ¶ added in v0.5.0
func (e *Enjin) GetFormatProviders() []feature.PageFormatProvider
func (*Enjin) GetFuncMapProviders ¶ added in v0.5.0
func (e *Enjin) GetFuncMapProviders() []feature.FuncMapProvider
func (*Enjin) GetHeadersModifiers ¶ added in v0.5.0
func (e *Enjin) GetHeadersModifiers() []feature.HeadersModifier
func (*Enjin) GetLocaleHandler ¶ added in v0.5.0
func (e *Enjin) GetLocaleHandler() feature.LocaleHandler
func (*Enjin) GetLocalesProviders ¶ added in v0.5.0
func (e *Enjin) GetLocalesProviders() []feature.LocalesProvider
func (*Enjin) GetMenuProviders ¶ added in v0.5.0
func (e *Enjin) GetMenuProviders() []feature.MenuProvider
func (*Enjin) GetOutputTransformers ¶ added in v0.5.0
func (e *Enjin) GetOutputTransformers() []feature.OutputTransformer
func (*Enjin) GetOutputTranslators ¶ added in v0.5.0
func (e *Enjin) GetOutputTranslators() []feature.OutputTranslator
func (*Enjin) GetPageContextFieldsProviders ¶ added in v0.5.0
func (e *Enjin) GetPageContextFieldsProviders() []feature.PageContextFieldsProvider
func (*Enjin) GetPageContextModifiers ¶ added in v0.5.0
func (e *Enjin) GetPageContextModifiers() []feature.PageContextModifier
func (*Enjin) GetPageContextParsersProviders ¶ added in v0.5.0
func (e *Enjin) GetPageContextParsersProviders() []feature.PageContextParsersProvider
func (*Enjin) GetPageContextProviders ¶ added in v0.5.0
func (e *Enjin) GetPageContextProviders() []feature.PageContextProvider
func (*Enjin) GetPageContextUpdaters ¶ added in v0.5.0
func (e *Enjin) GetPageContextUpdaters() []feature.PageContextUpdater
func (*Enjin) GetPageProviders ¶ added in v0.5.0
func (e *Enjin) GetPageProviders() []feature.PageProvider
func (*Enjin) GetPageRestrictionHandlers ¶ added in v0.5.0
func (e *Enjin) GetPageRestrictionHandlers() []feature.PageRestrictionHandler
func (*Enjin) GetPageShortcodeProcessors ¶ added in v0.5.0
func (e *Enjin) GetPageShortcodeProcessors() []feature.PageShortcodeProcessor
func (*Enjin) GetPageTypeProcessors ¶ added in v0.5.0
func (e *Enjin) GetPageTypeProcessors() []feature.PageTypeProcessor
func (*Enjin) GetPanicHandler ¶ added in v0.5.0
func (e *Enjin) GetPanicHandler() feature.PanicHandler
func (*Enjin) GetPermissionsPolicyModifiers ¶ added in v0.5.0
func (e *Enjin) GetPermissionsPolicyModifiers() []feature.PermissionsPolicyModifier
func (*Enjin) GetPrepareServePagesFeatures ¶ added in v0.5.0
func (e *Enjin) GetPrepareServePagesFeatures() []feature.PrepareServePagesFeature
func (*Enjin) GetProcessors ¶ added in v0.5.0
func (*Enjin) GetPublicAccess ¶ added in v0.2.0
func (*Enjin) GetQueryIndexFeatures ¶ added in v0.5.0
func (e *Enjin) GetQueryIndexFeatures() []feature.QueryIndexFeature
func (*Enjin) GetRequestFilters ¶ added in v0.5.0
func (e *Enjin) GetRequestFilters() []feature.RequestFilter
func (*Enjin) GetRequestModifiers ¶ added in v0.5.0
func (e *Enjin) GetRequestModifiers() []feature.RequestModifier
func (*Enjin) GetRequestRewriters ¶ added in v0.5.0
func (e *Enjin) GetRequestRewriters() []feature.RequestRewriter
func (*Enjin) GetRoutePagesHandler ¶ added in v0.5.0
func (e *Enjin) GetRoutePagesHandler() feature.RoutePagesHandler
func (*Enjin) GetServePagesHandler ¶ added in v0.5.0
func (e *Enjin) GetServePagesHandler() feature.ServePagesHandler
func (*Enjin) GetServePathFeatures ¶ added in v0.5.0
func (e *Enjin) GetServePathFeatures() []feature.ServePathFeature
func (*Enjin) GetServiceListener ¶ added in v0.5.0
func (e *Enjin) GetServiceListener() feature.ServiceListener
func (*Enjin) GetServiceLogHandler ¶ added in v0.5.0
func (e *Enjin) GetServiceLogHandler() feature.ServiceLogHandler
func (*Enjin) GetServiceLoggers ¶ added in v0.5.0
func (e *Enjin) GetServiceLoggers() []feature.ServiceLogger
func (*Enjin) GetTemplatePartial ¶ added in v0.4.0
func (*Enjin) GetTemplatePartialsProvider ¶ added in v0.5.0
func (e *Enjin) GetTemplatePartialsProvider() []feature.TemplatePartialsProvider
func (*Enjin) GetThemeName ¶ added in v0.5.0
func (*Enjin) GetThemeNamed ¶ added in v0.5.0
func (*Enjin) GetThemeRenderer ¶ added in v0.4.0
func (e *Enjin) GetThemeRenderer(ctx context.Context) (renderer feature.ThemeRenderer)
func (*Enjin) GetThemeRenderers ¶ added in v0.5.0
func (e *Enjin) GetThemeRenderers() []feature.ThemeRenderer
func (*Enjin) GetUseMiddlewares ¶ added in v0.5.0
func (e *Enjin) GetUseMiddlewares() []feature.UseMiddleware
func (*Enjin) GetUserActionsProviders ¶ added in v0.5.0
func (e *Enjin) GetUserActionsProviders() []feature.UserActionsProvider
func (*Enjin) Headers ¶
func (e *Enjin) Headers() (headers []headers.ModifyHeadersFn)
func (*Enjin) HotReloading ¶ added in v0.5.0
func (*Enjin) ListFormats ¶ added in v0.1.0
func (*Enjin) ListPageContextFields ¶ added in v0.7.0
func (*Enjin) ListTemplatePartials ¶ added in v0.4.0
func (*Enjin) MakeFuncMap ¶ added in v0.4.0
func (*Enjin) MakeLanguagePrinter ¶ added in v0.5.0
func (*Enjin) MakePageContextField ¶ added in v0.5.0
func (*Enjin) MakePageContextFields ¶ added in v0.5.0
func (e *Enjin) MakePageContextFields(r *http.Request) (list page_fields.Fields)
func (*Enjin) MatchFormat ¶
func (e *Enjin) MatchFormat(filename string) (format feature.PageFormat, match string)
func (*Enjin) MustGetTheme ¶ added in v0.1.0
func (*Enjin) MustGetThemeNamed ¶ added in v0.5.0
func (*Enjin) NewSyncLocker ¶ added in v0.5.0
func (e *Enjin) NewSyncLocker(tag feature.Tag, key string, store feature.KeyValueStore) (l feature.SyncLocker)
func (*Enjin) NewSyncLockerWith ¶ added in v0.5.0
func (e *Enjin) NewSyncLockerWith(tag feature.Tag, key string, store feature.KeyValueStore, timeout, interval time.Duration) (l feature.SyncLocker)
func (*Enjin) NewSyncRWLocker ¶ added in v0.5.0
func (e *Enjin) NewSyncRWLocker(tag feature.Tag, key string, readStore, writeStore feature.KeyValueStore) (l feature.SyncRWLocker)
func (*Enjin) NewSyncRWLockerWith ¶ added in v0.5.0
func (e *Enjin) NewSyncRWLockerWith(tag feature.Tag, key string, readStore, writeStore feature.KeyValueStore, timeout, interval time.Duration) (l feature.SyncRWLocker)
func (*Enjin) PageContextParsers ¶ added in v0.5.0
func (e *Enjin) PageContextParsers() (parsers page_fields.Parsers)
func (*Enjin) PerformLookup ¶ added in v0.7.0
func (*Enjin) PerformQuery ¶ added in v0.7.0
func (*Enjin) PerformQueryPages ¶ added in v0.7.0
func (*Enjin) PermissionsPolicy ¶
func (e *Enjin) PermissionsPolicy() (handler *permissions.PolicyHandler)
func (*Enjin) Processors ¶
func (e *Enjin) Processors() (processors map[string]feature.ReqProcessFn)
func (*Enjin) PublicFileSystems ¶ added in v0.4.0
func (*Enjin) PublicUserActions ¶ added in v0.5.0
func (*Enjin) ReloadLocales ¶ added in v0.5.0
func (e *Enjin) ReloadLocales()
func (*Enjin) Serve400 ¶ added in v0.2.2
func (e *Enjin) Serve400(w http.ResponseWriter, r *http.Request)
func (*Enjin) ServeBasic401 ¶
func (e *Enjin) ServeBasic401(w http.ResponseWriter, r *http.Request)
func (*Enjin) ServeForbidden ¶ added in v0.5.0
func (e *Enjin) ServeForbidden(w http.ResponseWriter, r *http.Request)
func (*Enjin) ServeHtmlRedirect ¶ added in v0.5.4
func (*Enjin) ServeInternalServerError ¶
func (e *Enjin) ServeInternalServerError(w http.ResponseWriter, r *http.Request)
func (*Enjin) ServeNotFound ¶
func (e *Enjin) ServeNotFound(w http.ResponseWriter, r *http.Request)
func (*Enjin) ServeRedirect ¶
func (*Enjin) ServeRedirectHomePath ¶ added in v0.5.0
func (e *Enjin) ServeRedirectHomePath(w http.ResponseWriter, r *http.Request)
func (*Enjin) ServeStatusJSON ¶ added in v0.2.2
func (*Enjin) ServeStatusPage ¶
func (*Enjin) ServerName ¶
func (*Enjin) ServiceInfo ¶
func (*Enjin) SetupRootEnjin ¶
func (*Enjin) SiteCopyrightName ¶ added in v0.5.1
func (*Enjin) SiteCopyrightNotice ¶ added in v0.5.1
func (*Enjin) SiteCopyrightYear ¶ added in v0.5.1
func (*Enjin) SiteDefaultLanguage ¶
func (*Enjin) SiteLanguageCatalog ¶
func (*Enjin) SiteLanguageDisplayName ¶
func (*Enjin) SiteLanguageMode ¶
func (*Enjin) SiteLocales ¶
func (*Enjin) SiteSupportsLanguage ¶
func (*Enjin) SiteTagLine ¶
func (*Enjin) StartupString ¶
func (*Enjin) ThemeNames ¶
func (*Enjin) Transformers ¶
func (e *Enjin) Transformers() (transformers map[string]feature.TransformOutputFn)
func (*Enjin) TranslateShortcodes ¶ added in v0.4.0
func (*Enjin) Translators ¶
func (e *Enjin) Translators() (translators map[string]feature.TranslateOutputFn)
func (*Enjin) ValidateUserRequest ¶ added in v0.5.0
func (*Enjin) VerifyNonce ¶ added in v0.5.0
func (*Enjin) VerifyToken ¶ added in v0.5.0
type EnjinBuilder ¶
type EnjinBuilder struct { signaling.CSignaling // contains filtered or unexported fields }
func New ¶
func New() (be *EnjinBuilder)
func (*EnjinBuilder) AddCommands ¶
func (eb *EnjinBuilder) AddCommands(commands ...*cli.Command) feature.Builder
func (*EnjinBuilder) AddConsole ¶
func (eb *EnjinBuilder) AddConsole(c feature.Console) feature.Builder
func (*EnjinBuilder) AddCspModifierFn ¶ added in v0.5.1
func (eb *EnjinBuilder) AddCspModifierFn(tag string, fn feature.CspModifierFn) feature.Builder
func (*EnjinBuilder) AddDomains ¶
func (eb *EnjinBuilder) AddDomains(domains ...string) feature.Builder
func (*EnjinBuilder) AddFeature ¶
func (eb *EnjinBuilder) AddFeature(features ...feature.Feature) feature.Builder
func (*EnjinBuilder) AddFlags ¶
func (eb *EnjinBuilder) AddFlags(flags ...cli.Flag) feature.Builder
func (*EnjinBuilder) AddHtmlHeadTag ¶
func (*EnjinBuilder) AddModifyHeadersFn ¶
func (eb *EnjinBuilder) AddModifyHeadersFn(fn headers.ModifyHeadersFn) feature.Builder
func (*EnjinBuilder) AddNotifyHook ¶
func (eb *EnjinBuilder) AddNotifyHook(name string, hook feature.NotifyHook) feature.Builder
func (*EnjinBuilder) AddOutputTransformer ¶
func (eb *EnjinBuilder) AddOutputTransformer(mime string, filter feature.TransformOutputFn) feature.Builder
func (*EnjinBuilder) AddOutputTranslator ¶
func (eb *EnjinBuilder) AddOutputTranslator(mime string, filter feature.TranslateOutputFn) feature.Builder
func (*EnjinBuilder) AddPageFromString ¶
func (eb *EnjinBuilder) AddPageFromString(path, raw string) feature.Builder
func (*EnjinBuilder) AddPreset ¶ added in v0.4.0
func (eb *EnjinBuilder) AddPreset(presets ...feature.Preset) feature.Builder
func (*EnjinBuilder) AddRouteProcessor ¶
func (eb *EnjinBuilder) AddRouteProcessor(route string, processor feature.ReqProcessFn) feature.Builder
func (*EnjinBuilder) AddUserAction ¶ added in v0.2.1
func (eb *EnjinBuilder) AddUserAction(actions ...feature.Action) feature.Builder
func (*EnjinBuilder) Build ¶
func (eb *EnjinBuilder) Build() feature.Runner
func (*EnjinBuilder) Features ¶ added in v0.5.0
func (eb *EnjinBuilder) Features() (cache *feature.FeaturesCache)
func (*EnjinBuilder) IgnoreSlugsums ¶
func (eb *EnjinBuilder) IgnoreSlugsums() *EnjinBuilder
func (*EnjinBuilder) IncludeEnjin ¶
func (eb *EnjinBuilder) IncludeEnjin(enjins ...feature.Builder) feature.Builder
func (*EnjinBuilder) MakeEnvKey ¶
func (eb *EnjinBuilder) MakeEnvKey(name string) (key string)
func (*EnjinBuilder) MakeEnvKeys ¶
func (eb *EnjinBuilder) MakeEnvKeys(names ...string) (keys []string)
func (*EnjinBuilder) PrependFeature ¶ added in v0.4.0
func (eb *EnjinBuilder) PrependFeature(f feature.Feature) feature.Builder
func (*EnjinBuilder) RegisterPublicFileSystem ¶ added in v0.4.0
func (eb *EnjinBuilder) RegisterPublicFileSystem(mount string, filesystems ...fs.FileSystem)
func (*EnjinBuilder) RegisterTemplatePartial ¶ added in v0.4.0
func (eb *EnjinBuilder) RegisterTemplatePartial(block, position, name, tmpl string) (err error)
func (*EnjinBuilder) Set ¶
func (eb *EnjinBuilder) Set(key string, value interface{}) feature.Builder
func (*EnjinBuilder) SetAlwaysHtmlRedirect ¶ added in v0.5.4
func (eb *EnjinBuilder) SetAlwaysHtmlRedirect(always bool) feature.Builder
func (*EnjinBuilder) SetEnjinTextFn ¶ added in v0.5.1
func (eb *EnjinBuilder) SetEnjinTextFn(fn feature.EnjinTextFn) feature.Builder
func (*EnjinBuilder) SetHtmlRedirectDelay ¶ added in v0.5.4
func (eb *EnjinBuilder) SetHtmlRedirectDelay(seconds int) feature.Builder
func (*EnjinBuilder) SetPublicAccess ¶ added in v0.2.0
func (eb *EnjinBuilder) SetPublicAccess(actions ...feature.Action) feature.Builder
func (*EnjinBuilder) SetStatusPage ¶
func (eb *EnjinBuilder) SetStatusPage(status int, path string) feature.Builder
func (*EnjinBuilder) SiteCopyrightName ¶
func (eb *EnjinBuilder) SiteCopyrightName(name string) feature.Builder
func (*EnjinBuilder) SiteCopyrightNotice ¶
func (eb *EnjinBuilder) SiteCopyrightNotice(notice string) feature.Builder
func (*EnjinBuilder) SiteCopyrightYear ¶ added in v0.5.1
func (eb *EnjinBuilder) SiteCopyrightYear(year string) feature.Builder
func (*EnjinBuilder) SiteDefaultLanguage ¶
func (eb *EnjinBuilder) SiteDefaultLanguage(tag language.Tag) feature.Builder
func (*EnjinBuilder) SiteLanguageDisplayNames ¶
func (*EnjinBuilder) SiteLanguageMode ¶
func (eb *EnjinBuilder) SiteLanguageMode(mode lang.Mode) feature.Builder
func (*EnjinBuilder) SiteSupportedLanguages ¶
func (eb *EnjinBuilder) SiteSupportedLanguages(tags ...language.Tag) feature.Builder
func (*EnjinBuilder) SiteTagLine ¶
func (eb *EnjinBuilder) SiteTagLine(tagLine string) feature.Builder
Source Files ¶
- be.go
- be_console_stub.go
- be_db.go
- be_email.go
- be_generate.go
- be_globals.go
- be_integrity.go
- be_internals.go
- be_internals_features.go
- be_locales.go
- be_middleware.go
- be_notify.go
- be_reload.go
- be_request.go
- be_router.go
- be_runner.go
- be_serve.go
- be_signaling.go
- be_site.go
- be_system.go
- be_userauth.go
- be_userbase.go
- eb.go
- eb_buildable.go
- eb_console_stub.go
- eb_core.go
- eb_locales.go
- eb_outputs.go
- eb_pages.go
- eb_site.go
- eb_themes.go
- eb_userbase.go
Directories ¶
Path | Synopsis |
---|---|
drivers
|
|
features
|
|
pages/tagcloud
Package tagcloud provides tag cloud enjin features
|
Package tagcloud provides tag cloud enjin features |
pkg
|
|
dbi
Package dbi is an implementation of feature.DataBase
|
Package dbi is an implementation of feature.DataBase |
presets
|
|
types
|
|
Click to show internal directories.
Click to hide internal directories.