handlers

package
v0.0.0-...-7f373d5 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: LGPL-3.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

type Env struct {
	DB                  models.Datastore
	GoBkmProxyURL       string // the application URL
	GoBkmProxyHost      string // the application Host
	GoBkmHistorySize    int    // the folder history size
	GoBkmUsername       string // the dfault login username
	TplMainData         string // main template data
	TplAddBookmarkData  string // add bookmark template data
	TplTestData         string // test template data
	CSSMainData         []byte // main css data
	CSSAwesoneFontsData []byte // awesome fonts css data
	JsData              []byte // js data
}

Env is a structure used to pass objects throughout the application.

func (*Env) AddBookmarkHandler

func (env *Env) AddBookmarkHandler(w http.ResponseWriter, r *http.Request)

AddBookmarkHandler handles the bookmarks creation with drag and drop.

func (*Env) AddFolderHandler

func (env *Env) AddFolderHandler(w http.ResponseWriter, r *http.Request)

AddFolderHandler handles the folders creation.

func (*Env) DeleteBookmarkHandler

func (env *Env) DeleteBookmarkHandler(w http.ResponseWriter, r *http.Request)

DeleteBookmarkHandler handles the bookmarks deletion.

func (*Env) DeleteFolderHandler

func (env *Env) DeleteFolderHandler(w http.ResponseWriter, r *http.Request)

DeleteFolderHandler handles the folders deletion.

func (*Env) ExportHandler

func (env *Env) ExportHandler(w http.ResponseWriter, r *http.Request)

ExportHandler handles the export requests.

func (*Env) GetFolderChildrenHandler

func (env *Env) GetFolderChildrenHandler(w http.ResponseWriter, r *http.Request)

GetFolderChildrenHandler retrieves the subfolders and bookmarks of the given folder.

func (*Env) GetStarsHandler

func (env *Env) GetStarsHandler(w http.ResponseWriter, r *http.Request)

GetStarsHandler retrieves the starred bookmarks.

func (*Env) GetTagsHandler

func (env *Env) GetTagsHandler(w http.ResponseWriter, r *http.Request)

GetTagsHandler retrieves the tags.

func (*Env) GetTreeHandler

func (env *Env) GetTreeHandler(w http.ResponseWriter, r *http.Request)

GetTreeHandler return the entire folder and bookmark tree

func (*Env) ImportHandler

func (env *Env) ImportHandler(w http.ResponseWriter, r *http.Request)

ImportHandler handles the import requests.

func (*Env) MainHandler

func (env *Env) MainHandler(w http.ResponseWriter, r *http.Request)

MainHandler handles the main application page.

func (*Env) SearchBookmarkHandler

func (env *Env) SearchBookmarkHandler(w http.ResponseWriter, r *http.Request)

SearchBookmarkHandler returns the bookmarks matching the search.

func (*Env) StarBookmarkHandler

func (env *Env) StarBookmarkHandler(w http.ResponseWriter, r *http.Request)

StarBookmarkHandler handles the bookmark starring/unstarring.

func (*Env) UpdateBookmarkHandler

func (env *Env) UpdateBookmarkHandler(w http.ResponseWriter, r *http.Request)

UpdateBookmarkHandler handles the bookmarks rename.

func (*Env) UpdateFolderHandler

func (env *Env) UpdateFolderHandler(w http.ResponseWriter, r *http.Request)

UpdateFolderHandler handles the folder rename.

Jump to

Keyboard shortcuts

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