Documentation ¶
Index ¶
- func GetFileContent(abspath string) (string, error)
- type HTTPHandler
- func ApiNewNotebookHandler(notebookRegistry *service.NotebookRegistry, ...) HTTPHandler
- func ApiNotebookExecHandler(notebookRegistry *service.NotebookRegistry, csrfService *service.CSRFService, ...) HTTPHandler
- func ApiNotebookRenameHandler(notebookRegistry *service.NotebookRegistry, csrfService *service.CSRFService, ...) HTTPHandler
- func ApiNotebookSetContentHandler(notebookRegistry *service.NotebookRegistry, csrfService *service.CSRFService) HTTPHandler
- func ApiNotebookStopHandler(notebookRegistry *service.NotebookRegistry, csrfService *service.CSRFService) HTTPHandler
- func CsrfHandler(csrf *service.CSRFService) HTTPHandler
- func HomePageHandler(notebookregistry *service.NotebookRegistry, ...) HTTPHandler
- func NotebookHandler(notebookRegistry *service.NotebookRegistry, routes *service.Routes) HTTPHandler
- type NotebookSummaryFrontend
- type RecipeSummaryFrontend
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFileContent ¶
Types ¶
type HTTPHandler ¶
type HTTPHandler = func(res http.ResponseWriter, req *http.Request)
func ApiNewNotebookHandler ¶
func ApiNewNotebookHandler( notebookRegistry *service.NotebookRegistry, recipeRegistry *service.RecipeRegistry, csrfService *service.CSRFService, routes *service.Routes, notebookspath string) HTTPHandler
func ApiNotebookExecHandler ¶
func ApiNotebookExecHandler(notebookRegistry *service.NotebookRegistry, csrfService *service.CSRFService, useDocker bool) HTTPHandler
func ApiNotebookRenameHandler ¶
func ApiNotebookRenameHandler(notebookRegistry *service.NotebookRegistry, csrfService *service.CSRFService, routes *service.Routes) HTTPHandler
func ApiNotebookSetContentHandler ¶
func ApiNotebookSetContentHandler(notebookRegistry *service.NotebookRegistry, csrfService *service.CSRFService) HTTPHandler
func ApiNotebookStopHandler ¶
func ApiNotebookStopHandler(notebookRegistry *service.NotebookRegistry, csrfService *service.CSRFService) HTTPHandler
func CsrfHandler ¶
func CsrfHandler(csrf *service.CSRFService) HTTPHandler
func HomePageHandler ¶
func HomePageHandler( notebookregistry *service.NotebookRegistry, reciperegistry *service.RecipeRegistry, routes *service.Routes, ) HTTPHandler
func NotebookHandler ¶
func NotebookHandler(notebookRegistry *service.NotebookRegistry, routes *service.Routes) HTTPHandler
type NotebookSummaryFrontend ¶
type NotebookSummaryFrontend struct { Name string `json:"name"` Url string `json:"url"` Mtime string `json:"mtime"` Recipe RecipeSummaryFrontend `json:"recipe"` }
Click to show internal directories.
Click to hide internal directories.