Documentation
¶
Index ¶
- Constants
- func NewBlockCreateController(ui UiInterface) *blockCreateController
- func NewBlockDeleteController(ui UiInterface) *blockDeleteController
- func NewBlockManagerController(ui UiInterface) *blockManagerController
- func NewBlockUpdateController(ui UiInterface) *blockUpdateController
- type UiConfig
- type UiInterface
Constants ¶
View Source
const ActionModalPageFilterShow = "modal_block_filter_show"
View Source
const VIEW_CONTENT = "content"
View Source
const VIEW_SETTINGS = "settings"
Variables ¶
This section is empty.
Functions ¶
func NewBlockCreateController ¶
func NewBlockCreateController(ui UiInterface) *blockCreateController
func NewBlockDeleteController ¶
func NewBlockDeleteController(ui UiInterface) *blockDeleteController
func NewBlockManagerController ¶
func NewBlockManagerController(ui UiInterface) *blockManagerController
func NewBlockUpdateController ¶
func NewBlockUpdateController(ui UiInterface) *blockUpdateController
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 PathBlockCreate string PathBlockDelete string PathBlockManager string PathBlockUpdate 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 PathBlockCreate() string PathBlockDelete() string PathBlockManager() string PathBlockUpdate() string BlockCreate(w http.ResponseWriter, r *http.Request) BlockManager(w http.ResponseWriter, r *http.Request) BlockDelete(w http.ResponseWriter, r *http.Request) BlockUpdate(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.