engine

package module
v0.0.0-...-19e0465 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OperationGetAppConfig   = "@getAppConfig"
	OperationGetAppView     = "@getAppView"
	OperationGetSignView    = "@getSignView"
	OperationGetCurrentUser = "@getCurrentUser"
	OperationUploadFile     = "@uploadFile"
)

Variables

This section is empty.

Functions

func NewApp

func NewApp(cfg *App)

Types

type App

type App struct {
	Title       string
	Description string
	Copyright   string
	Entry       string
	Menus       []*AppMenu
	NavItems    []view.Node
	Binding     *AppBinding
}

type AppBinding

type AppBinding struct {
	SignForm                 view.Node
	GetCurrentUserController interface{}
}

type AppMenu

type AppMenu struct {
	Key      string
	Title    string
	Icon     string
	Page     view.Interface
	AC       ac.AC
	Target   string
	IsHome   bool
	Children []*AppMenu
}

type GetAppViewReq

type GetAppViewReq struct {
	Key string `p:"key" v:"required"`
}

type GetAppViewRes

type GetAppViewRes struct {
	Schema  string   `json:"schema"`
	Removes []string `json:"removes"`
}

type GetSignViewRes

type GetSignViewRes struct {
	Title       string     `json:"title"`
	Description string     `json:"description"`
	Body        *ui.Schema `json:"body"`
	Copyright   string     `json:"copyright"`
}

Jump to

Keyboard shortcuts

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