Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAuthHandler ¶
func CheckAuthHandler(next echo.HandlerFunc) echo.HandlerFunc
func CheckRoleHandler ¶
func CheckRoleHandler(next echo.HandlerFunc) echo.HandlerFunc
func GenerateStateHandler ¶
func GenerateStateHandler(next echo.HandlerFunc) echo.HandlerFunc
Types ¶
type React ¶
type React struct {
// contains filtered or unexported fields
}
React struct is contains JS vms pool to serve HTTP requests and separates some domain specific resources.
var ReactJS *React
type Resp ¶
type Resp struct { UUID string `json:"uuid"` Error string `json:"error"` Redirect string `json:"redirect"` App string `json:"app"` Title string `json:"title"` Meta string `json:"meta"` Initial string `json:"initial"` RenderTime time.Duration `json:"-"` }
Resp is a struct for convinient react app Response parsing. Feel free to add any other keys to this struct and return value for this key at ecmascript side. Keep it sync with: src/app/client/router/toString.js:23
Click to show internal directories.
Click to hide internal directories.