Documentation ¶
Index ¶
- type App
- func (app *App) ApiGetBookmark(c echo.Context) error
- func (app *App) ApiGetBookmarkTags(c echo.Context) error
- func (app *App) ApiGetBookmarks(c echo.Context) error
- func (app *App) ApiGetFolders(c echo.Context) error
- func (app *App) ApiGetRecentBookmarks(c echo.Context) error
- func (app *App) ApiGetSubEntities(c echo.Context) error
- func (app *App) ApiGetSubFolders(c echo.Context) error
- func (app *App) ApiPostBookmark(c echo.Context) error
- func (app *App) ApiPostBookmarkTags(c echo.Context) error
- func (app *App) ApiPostEntityToFolder(c echo.Context) error
- func (app *App) ApiPostEvent(c echo.Context) error
- func (app *App) ApiPostFolder(c echo.Context) error
- func (app *App) ApiShareBookmark(c echo.Context) error
- func (app *App) ApiUpdateBookmark(c echo.Context) error
- func (app *App) Auth2FACode(c echo.Context) error
- func (app *App) AuthCreate2FACode(c echo.Context) error
- func (app *App) AuthJWTError(e error, c echo.Context) error
- func (app *App) AuthLogin(c echo.Context) error
- func (app *App) AuthRegister(c echo.Context) error
- func (a *App) GetConfig() *m.Config
- func (a *App) Init(c string)
- func (a *App) RegisterEnabled() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { Config *m.Config DB *db.DB Scheduler *scheduler.Scheduler // Authenticator *authentication.Authenticator Settings m.Settings }
App represents dependencies which will be injected into the Server handlers.
func (*App) ApiGetBookmark ¶
ApiGetBookmark gets a single bookmark matching the hash
func (*App) ApiGetBookmarkTags ¶
ApiGetBookmarkTags gets tags attached to a single bookmark
func (*App) ApiGetBookmarks ¶
ApiGetBookmarks gets all bookmarks
func (*App) ApiGetFolders ¶
ApiGetFolders gets all folders
func (*App) ApiGetRecentBookmarks ¶
ApiGetRecentBookmarks gets recent bookmarks
func (*App) ApiGetSubEntities ¶
ApiGetSubEntities gets all sub entities from a parent folder
func (*App) ApiGetSubFolders ¶
ApiGetSubFolders gets all subfolders from a parent folder
func (*App) ApiPostBookmark ¶
ApiPostBookmark saves a bookmark
func (*App) ApiPostBookmarkTags ¶
ApiPostBookmarkTags saves one or more tags to a bookmark
func (*App) ApiPostEntityToFolder ¶
ApiPostEntityToFolder saves any type of entity to a folder
func (*App) ApiPostEvent ¶
func (*App) ApiPostFolder ¶
ApiPostFolder saves a folder
func (*App) ApiShareBookmark ¶
func (*App) ApiUpdateBookmark ¶
ApiUpdateBookmark updates a bookmark
func (*App) Auth2FACode ¶
Auth2FACode handles the 2FA code validation
func (*App) AuthCreate2FACode ¶
AuthCreate2FACode handles the 2FA code validation
func (*App) AuthJWTError ¶
AuthJWTError handles the redirect to the login page if no JWT token is present
func (*App) AuthRegister ¶
AuthRegister handles the register process of a new user
func (*App) Init ¶
Init sets up some basic parameters of the provided App instance, like the Config and the DB (Database) connection.