Documentation
¶
Index ¶
- Constants
- func NewTemplateCreateController(ui UiInterface) *templateCreateController
- func NewTemplateDeleteController(ui UiInterface) *templateDeleteController
- func NewTemplateManagerController(ui UiInterface) *templateManagerController
- func NewTemplateUpdateController(ui UiInterface) *templateUpdateController
- type UiConfig
- type UiInterface
Constants ¶
View Source
const ActionModalPageFilterShow = "modal_template_filter_show"
View Source
const VIEW_CONTENT = "content"
View Source
const VIEW_SETTINGS = "settings"
Variables ¶
This section is empty.
Functions ¶
func NewTemplateCreateController ¶
func NewTemplateCreateController(ui UiInterface) *templateCreateController
func NewTemplateDeleteController ¶
func NewTemplateDeleteController(ui UiInterface) *templateDeleteController
func NewTemplateManagerController ¶
func NewTemplateManagerController(ui UiInterface) *templateManagerController
func NewTemplateUpdateController ¶
func NewTemplateUpdateController(ui UiInterface) *templateUpdateController
Types ¶
type UiConfig ¶
type UiConfig struct { Endpoint string Layout func(w http.ResponseWriter, r *http.Request, webpageTitle, webpageHtml string, options struct { Styles []string StyleURLs []string Scripts []string ScriptURLs []string }) string Logger *slog.Logger Store cmsstore.StoreInterface URL func(endpoint string, path string, params map[string]string) string PathTemplateCreate string PathTemplateDelete string PathTemplateManager string PathTemplateUpdate string }
type UiInterface ¶
type UiInterface interface { Endpoint() string Layout(w http.ResponseWriter, r *http.Request, webpageTitle, webpageHtml string, options struct { Styles []string StyleURLs []string Scripts []string ScriptURLs []string }) string Logger() *slog.Logger PathTemplateCreate() string PathTemplateDelete() string PathTemplateManager() string PathTemplateUpdate() string TemplateCreate(w http.ResponseWriter, r *http.Request) TemplateManager(w http.ResponseWriter, r *http.Request) TemplateDelete(w http.ResponseWriter, r *http.Request) TemplateUpdate(w http.ResponseWriter, r *http.Request) Store() cmsstore.StoreInterface URL(endpoint string, path string, params map[string]string) string }
func UI ¶
func UI(config UiConfig) UiInterface
Click to show internal directories.
Click to hide internal directories.