httphandler

package
v0.0.0-...-fc83e60 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2020 License: ISC Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFileContent

func GetFileContent(abspath string) (string, error)

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"`
}

type RecipeSummaryFrontend

type RecipeSummaryFrontend struct {
	Key      string `json:"key"`
	Name     string `json:"name"`
	Language string `json:"language"`
	Cmmode   string `json:"cmmode"`
}

Jump to

Keyboard shortcuts

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