handlers

package
v0.0.0-...-d0d6092 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2016 License: LGPL-3.0 Imports: 16 Imported by: 0

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
	TplMainData         string // main template data
	TplAddBookmarkData  string // add bookmark 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) AddBookmarkBookmarkletHandler

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

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) BookmarkThisHandler

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

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) ExportTree

func (env *Env) ExportTree(wr io.Writer, eb *exportBookmarksStruct, depth int) *exportBookmarksStruct

ExportTree recursively exports in HTML the given bookmark struct.

func (*Env) GetChildrenFoldersHandler

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

GetChildrenFoldersHandler retrieves the subfolders for the given folder.

func (*Env) GetFolderBookmarksHandler

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

GetFolderBookmarksHandler retrieves the bookmarks for the given folder.

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) MoveBookmarkHandler

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

MoveBookmarkHandler handles the bookmarks move.

func (*Env) MoveFolderHandler

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

MoveFolderHandler handles the folders move.

func (*Env) RenameBookmarkHandler

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

RenameBookmarkHandler handles the bookmarks rename.

func (*Env) RenameFolderHandler

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

RenameFolderHandler handles the folder rename.

func (*Env) SearchBookmarkHandler

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

func (*Env) SocketHandler

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

SocketHandler handles the websocket communications

func (*Env) StarBookmarkHandler

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

StarBookmarkHandler handles the bookmark starring/unstarring.

func (*Env) TestHandler

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

TestHandler not used in production.

func (*Env) UpdateBookmarkFavicon

func (env *Env) UpdateBookmarkFavicon(bkm *types.Bookmark)

UpdateBookmarkFavicon retrieves and updates the favicon for the given bookmark.

Jump to

Keyboard shortcuts

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