Documentation
¶
Index ¶
- func Configure(l *goapp.Lifecycle, conf *config.Config)
- func GetEmbedFS() embed.FS
- func InitView(app *goapp.App, creator func(app *goapp.App) ViewHandlerInterface) web.HandlerFunc
- type NodeForm
- type ViewHandlerInterface
- func Dashboard_GET_Index(app *goapp.App) ViewHandlerInterface
- func Dashboard_GET_Login(app *goapp.App) ViewHandlerInterface
- func Dashboard_GET_Node_Edit(app *goapp.App) ViewHandlerInterface
- func Dashboard_GET_Node_List(app *goapp.App) ViewHandlerInterface
- func Dashboard_GET_Node_Update(app *goapp.App) ViewHandlerInterface
- func Dashboard_GET_ToDo(app *goapp.App) ViewHandlerInterface
- func Dashboard_HANDLE_Node_Create(app *goapp.App) ViewHandlerInterface
- type ViewResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEmbedFS ¶
func InitView ¶
func InitView(app *goapp.App, creator func(app *goapp.App) ViewHandlerInterface) web.HandlerFunc
Types ¶
type NodeForm ¶
type NodeForm struct { Name string `schema:"Name,required"` Slug string `schema:"Slug,required"` // Data interface{} `schema:"data"` // Meta interface{} `schema:"meta"` Status int `schema:"Status,required"` Weight int `schema:"Weight"` Enabled bool `schema:"Enabled,required"` ParentUuid base.Reference `schema:"ParentUuid"` }
type ViewHandlerInterface ¶
type ViewHandlerInterface func(c web.C, res http.ResponseWriter, req *http.Request) *ViewResponse
func Dashboard_GET_Index ¶
func Dashboard_GET_Index(app *goapp.App) ViewHandlerInterface
func Dashboard_GET_Login ¶
func Dashboard_GET_Login(app *goapp.App) ViewHandlerInterface
func Dashboard_GET_Node_Edit ¶
func Dashboard_GET_Node_Edit(app *goapp.App) ViewHandlerInterface
func Dashboard_GET_Node_List ¶
func Dashboard_GET_Node_List(app *goapp.App) ViewHandlerInterface
func Dashboard_GET_Node_Update ¶
func Dashboard_GET_Node_Update(app *goapp.App) ViewHandlerInterface
func Dashboard_GET_ToDo ¶
func Dashboard_GET_ToDo(app *goapp.App) ViewHandlerInterface
func Dashboard_HANDLE_Node_Create ¶
func Dashboard_HANDLE_Node_Create(app *goapp.App) ViewHandlerInterface
type ViewResponse ¶
type ViewResponse struct { StatusCode int ContentType string Template string Context template.Context Location string Body io.Reader Headers map[string]string }
prototype of a view response, this is used to return a response from a view function and this will probably replace the current response system from the prism module.
func HtmlResponse ¶
func HtmlResponse(code int, tpl string) *ViewResponse
func JsonResponse ¶
func JsonResponse(code int, body io.Reader) *ViewResponse
func RedirectResponse ¶
func RedirectResponse(code int, location string) *ViewResponse
func StreamedResponse ¶
func StreamedResponse(code int, contentType string, body io.Reader) *ViewResponse
func (*ViewResponse) Add ¶
func (r *ViewResponse) Add(name string, v interface{}) *ViewResponse
Click to show internal directories.
Click to hide internal directories.