Documentation ¶
Index ¶
Constants ¶
View Source
const AdminRole = "Admin"
AdminRole is admin
View Source
const WebUsage = "web"
WebUsage used for the uid
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ReactAppWrapper ¶
type ReactAppWrapper struct {
// contains filtered or unexported fields
}
ReactAppWrapper encapsulates an app
func New ¶
func New(cfg *config.Config, userStorer storage.UserStorer, codeConnector codeGenerator, h *hub.Hub, docHandler documentHandler, blobHandler blobHandler) *ReactAppWrapper
New Create a React app
func (ReactAppWrapper) Open ¶
func (w ReactAppWrapper) Open(filepath string) (http.File, error)
Open opens a file from the fs (virtual)
func (*ReactAppWrapper) RegisterRoutes ¶
func (app *ReactAppWrapper) RegisterRoutes(router *gin.Engine)
RegisterRoutes the apps routes
Source Files ¶
Click to show internal directories.
Click to hide internal directories.