service

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 SanitizeNotebookName

func SanitizeNotebookName(name string) (string, error)

Types

type CSRFService

type CSRFService struct {
	// contains filtered or unexported fields
}

func NewCSRFService

func NewCSRFService() *CSRFService

func (CSRFService) IsValid

func (cs CSRFService) IsValid(token CSRFToken) bool

func (*CSRFService) NewToken

func (cs *CSRFService) NewToken() CSRFToken

type CSRFToken

type CSRFToken string

type NotebookRegistry

type NotebookRegistry struct {
	// contains filtered or unexported fields
}

func NewNotebookRegistry

func NewNotebookRegistry(notebookspath string, reciperegistry *RecipeRegistry) *NotebookRegistry

func (NotebookRegistry) BuildNotebookDescriptor

func (r NotebookRegistry) BuildNotebookDescriptor(notebookname string, recipe types.Recipe) (types.Notebook, error)

func (NotebookRegistry) DetermineNotebookNameByAbsDir

func (r NotebookRegistry) DetermineNotebookNameByAbsDir(absdir string) (string, error)

func (NotebookRegistry) FindNotebooks

func (r NotebookRegistry) FindNotebooks(folderpath string) ([]types.Notebook, error)

func (NotebookRegistry) GetNotebookByName

func (r NotebookRegistry) GetNotebookByName(name string) (types.Notebook, error)

func (NotebookRegistry) GetNotebooks

func (r NotebookRegistry) GetNotebooks() []types.Notebook

func (NotebookRegistry) GetNotebooksPath

func (r NotebookRegistry) GetNotebooksPath() string

func (*NotebookRegistry) Refresh

func (r *NotebookRegistry) Refresh(notebook types.Notebook) (types.Notebook, error)

func (*NotebookRegistry) RegisterNotebook

func (r *NotebookRegistry) RegisterNotebook(notebook types.Notebook)

func (*NotebookRegistry) Renamed

func (r *NotebookRegistry) Renamed(notebook types.Notebook, newname string) (types.Notebook, error)

type NotebookWatcher

type NotebookWatcher struct {
	// contains filtered or unexported fields
}

func NewNotebookWatcher

func NewNotebookWatcher(registry *NotebookRegistry, onChange func(types.Notebook)) (*NotebookWatcher, error)

func (*NotebookWatcher) AddNotebook

func (w *NotebookWatcher) AddNotebook(notebook types.Notebook) error

func (*NotebookWatcher) Watch

func (w *NotebookWatcher) Watch() error

type RecipeRegistry

type RecipeRegistry struct {
	// contains filtered or unexported fields
}

func NewRecipeRegistry

func NewRecipeRegistry() *RecipeRegistry

func (*RecipeRegistry) AddRecipe

func (rr *RecipeRegistry) AddRecipe(recipe types.Recipe) *RecipeRegistry

func (RecipeRegistry) GetRecipeByKey

func (rr RecipeRegistry) GetRecipeByKey(key string) *types.Recipe

func (RecipeRegistry) GetRecipeForMainFilename

func (rr RecipeRegistry) GetRecipeForMainFilename(mainfilename string) (types.Recipe, error)

func (RecipeRegistry) GetRecipes

func (rr RecipeRegistry) GetRecipes() []types.Recipe

type Routes

type Routes struct{}

func NewRoutes

func NewRoutes() *Routes

func (Routes) APINewNotebook

func (r Routes) APINewNotebook() string

func (Routes) APINotebookExec

func (r Routes) APINotebookExec(name string) string

func (Routes) APINotebookRename

func (r Routes) APINotebookRename(name string) string

func (Routes) APINotebookSetContent

func (r Routes) APINotebookSetContent(name string) string

func (Routes) APINotebookStop

func (r Routes) APINotebookStop(name string) string

func (Routes) Home

func (r Routes) Home() string

func (Routes) Notebook

func (r Routes) Notebook(name string) string

type WalkFunc

type WalkFunc func(path string, info os.FileInfo, depth int, err error) error

Jump to

Keyboard shortcuts

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