handler

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIHostNameHandler

func APIHostNameHandler(w http.ResponseWriter, r *http.Request)

APIHostNameHandler exposes the HostName API Endpoint

func APIHostOSHandler

func APIHostOSHandler(w http.ResponseWriter, r *http.Request)

APIHostOSHandler exposes the HostOS Api Endpoint

func APIInstallPlugin

func APIInstallPlugin(w http.ResponseWriter, r *http.Request)

APIInstallPlugin an endpoint to install a specific plugin via URL Parameters, returning json of logs

func APIInstalledPluginsHandler

func APIInstalledPluginsHandler(w http.ResponseWriter, r *http.Request)

APIInstalledPluginsHandler exposes the installed plugins endpoint

func APIItemsHandler

func APIItemsHandler(w http.ResponseWriter, r *http.Request)

APIItemsHandler is an API Endpoint to return installed items.

func APIPingHandler

func APIPingHandler(w http.ResponseWriter, r *http.Request)

APIPingHandler is the API Endpoint for the Ping function for plugins

func APIPingNoSSLHandler

func APIPingNoSSLHandler(w http.ResponseWriter, r *http.Request)

APIPingNoSSLHandler is the API Endpoint for the No SSL Ping function for plugins

func APIServerSettingsGet

func APIServerSettingsGet(w http.ResponseWriter, r *http.Request)

APIServerSettingsGet is an API Endpoint Utilizing ServSettingGet from the model package to return server settings as json

func APIUninstallPlugin

func APIUninstallPlugin(w http.ResponseWriter, r *http.Request)

APIUninstallPlugin an endpoint to uninstall a specific plugin via URL Parameters, return json of logs

func APIUpdatePlugin

func APIUpdatePlugin(w http.ResponseWriter, r *http.Request)

APIUpdatePlugin is an endpoint that updates the available plugins and returns json of the logs

func APIUserSettingGet

func APIUserSettingGet(w http.ResponseWriter, r *http.Request)

APIUserSettingGet is an API Endpoint utilizing the UserSettingGet of the model class to return the users settings as json

func AddLinkItem

func AddLinkItem(w http.ResponseWriter, r *http.Request)

AddLinkItem is a JSON Handler for adding Link Items as opposed to the original Form based method

func ChangeLang

func ChangeLang(w http.ResponseWriter, r *http.Request)

ChangeLang is an API Endpoint to modify the server language whenever needed.

func ChangeMany

func ChangeMany(w http.ResponseWriter, r *http.Request)

ChangeMany is an HTTP Handler, thhat expects a URL query of id to specify thhe setting being modifyied. URL query of value to say what value is being chhanged. To change settings from the serverSettings.json file.

func DeleteHandler

func DeleteHandler(w http.ResponseWriter, r *http.Request)

DeleteHandler is an old carry-over to delete Items, this page could still work

func DeleteLinkItem

func DeleteLinkItem(w http.ResponseWriter, r *http.Request)

DeleteLinkItem is an API Handler alternative to the post handler of deleting Link Items

func EditLinkItem

func EditLinkItem(w http.ResponseWriter, r *http.Request)

EditLinkItem is an API Handler for modifying Link Items with V2 models

func HomePageHandler

func HomePageHandler(w http.ResponseWriter, r *http.Request)

HomePageHandler returns Template: homePage.html w/ Model: HomeV2

func LinkHealthPageHandler

func LinkHealthPageHandler(w http.ResponseWriter, r *http.Request)

LinkHealthPageHandler returns basic page data w/ no template. Page: linkhealth.html

func NotFoundHandler

func NotFoundHandler(w http.ResponseWriter, r *http.Request)

NotFoundHandler is the HTTP handler for a NotFound resource, directed to by the notFoundHandler middleware

func PluginRepoPageHandler

func PluginRepoPageHandler(w http.ResponseWriter, r *http.Request)

PluginRepoPageHandler returns Template: pluginRepo.html w/ Data: apiFunc.GetPluginData

func RobotsHandler

func RobotsHandler(w http.ResponseWriter, r *http.Request)

RobotsHandler is a simple static file server for a robots file, if this happens to exposed to the internet

func Search(w http.ResponseWriter, r *http.Request)

Search will be the API Endpoint for search functionality.

func SettingsPageHandler

func SettingsPageHandler(w http.ResponseWriter, r *http.Request)

SettingsPageHandler returns Template: settings.html w/ Model: ServSettingGet

func SitemapHandler

func SitemapHandler(w http.ResponseWriter, r *http.Request)

SitemapHandler is a simple static file server for the sitemap at the root

func UploadHandler

func UploadHandler(w http.ResponseWriter, r *http.Request)

UploadHandler is paired to http.HandleFunc("/upload", ) to handle the digestion of image uploads to GoPage

func UploadPageHandler

func UploadPageHandler(w http.ResponseWriter, r *http.Request)

UploadPageHandler is a very simple HTTP Serving File for the Upload Page

func UserImagesHandler

func UserImagesHandler(w http.ResponseWriter, r *http.Request)

UserImagesHandler returns a list of file names as json from the user Images folder

func UserSettingSet

func UserSettingSet(rw http.ResponseWriter, req *http.Request)

UserSettingSet is user to write new user settings to disk

Types

This section is empty.

Jump to

Keyboard shortcuts

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