dashboard

package
v0.0.0-...-8f9ce2e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(l *goapp.Lifecycle, conf *config.Config)

func GetEmbedFS

func GetEmbedFS() embed.FS

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL