handlers

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2018 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdvancedSettingsPage added in v0.13.0

func AdvancedSettingsPage() web.HandlerFunc

AdvancedSettingsPage is the advanced settings page

func Avatar added in v0.9.0

func Avatar() web.HandlerFunc

Avatar returns a gravatar picture of fallsback to letter avatar based on name

func BlockUser added in v0.17.0

func BlockUser() web.HandlerFunc

BlockUser is used to block an existing user from using Fider

func BrowserNotSupported added in v0.17.0

func BrowserNotSupported() web.HandlerFunc

BrowserNotSupported returns an error page for browser that Fider dosn't support

func ChangeUserEmail added in v0.9.0

func ChangeUserEmail() web.HandlerFunc

ChangeUserEmail register the intent of changing user email

func ChangeUserRole added in v0.7.0

func ChangeUserRole() web.HandlerFunc

ChangeUserRole changes given user role

func CheckAvailability

func CheckAvailability() web.HandlerFunc

CheckAvailability checks if given domain is available to be used

func CompleteSignInProfile added in v0.6.0

func CompleteSignInProfile() web.HandlerFunc

CompleteSignInProfile handles the action to update user profile

func CreateTenant

func CreateTenant() web.HandlerFunc

CreateTenant creates a new tenant

func DeleteUser added in v0.13.0

func DeleteUser() web.HandlerFunc

DeleteUser erases current user personal data and sign them out

func ExportPostsToCSV added in v0.15.0

func ExportPostsToCSV() web.HandlerFunc

ExportPostsToCSV returns a CSV with all posts

func GeneralSettingsPage added in v0.13.0

func GeneralSettingsPage() web.HandlerFunc

GeneralSettingsPage is the general settings page

func GetOAuthConfig added in v0.15.0

func GetOAuthConfig() web.HandlerFunc

GetOAuthConfig returns OAuth config based on given provider

func Health added in v0.13.0

func Health() web.HandlerFunc

Health always returns OK

func Index

func Index() web.HandlerFunc

Index is the default home page

func LegalPage added in v0.13.0

func LegalPage(title, file string) web.HandlerFunc

LegalPage returns a legal page with content from a file

func LogError added in v0.17.0

func LogError() web.HandlerFunc

LogError logs an error coming from the UI

func ManageAuthentication added in v0.15.0

func ManageAuthentication() web.HandlerFunc

ManageAuthentication is the page used by administrators to change site authentication settings

func ManageMembers added in v0.7.0

func ManageMembers() web.HandlerFunc

ManageMembers is the page used by administrators to change member's role

func ManageTags added in v0.8.0

func ManageTags() web.HandlerFunc

ManageTags is the home page for managing tags

func NotInvitedPage added in v0.12.0

func NotInvitedPage() web.HandlerFunc

NotInvitedPage renders the not invited page

func Notifications added in v0.10.0

func Notifications() web.HandlerFunc

Notifications is the home for unread and recent notifications

func OAuthCallback

func OAuthCallback() web.HandlerFunc

OAuthCallback handles the redirect back from the OAuth provider This callback can run on either Tenant or Login address If the request is for a sign in, we redirect the user to the tenant address If the request is for a sign up, we exchange the OAuth code and get the user profile

func OAuthEcho added in v0.15.0

func OAuthEcho() web.HandlerFunc

OAuthEcho exchanges OAuth Code for a user profile and return directly to the UI, without storing it

func OAuthToken added in v0.15.0

func OAuthToken() web.HandlerFunc

OAuthToken exchanges OAuth Code for a user profile The user profile is then used to either get an existing user on Fider or creating a new one Once Fider user is retrieved/created, an authentication cookie is store in user's browser

func Page added in v0.7.0

func Page(title, description string) web.HandlerFunc

Page returns a page without properties

func PostDetails added in v0.15.0

func PostDetails() web.HandlerFunc

PostDetails shows details of given Post by id

func ReadAllNotifications added in v0.10.0

func ReadAllNotifications() web.HandlerFunc

ReadAllNotifications marks all unread notifications as read

func ReadNotification added in v0.10.0

func ReadNotification() web.HandlerFunc

ReadNotification marks it as read and redirect to its content

func RegenerateAPIKey added in v0.15.0

func RegenerateAPIKey() web.HandlerFunc

RegenerateAPIKey regenerates current user's API Key

func RobotsTXT added in v0.15.0

func RobotsTXT() web.HandlerFunc

RobotsTXT return content of robots.txt file

func SaveOAuthConfig added in v0.15.0

func SaveOAuthConfig() web.HandlerFunc

SaveOAuthConfig is used to create/edit OAuth configurations

func SignInByEmail added in v0.6.0

func SignInByEmail() web.HandlerFunc

SignInByEmail sends a new email with verification key

func SignInByOAuth added in v0.12.0

func SignInByOAuth() web.HandlerFunc

SignInByOAuth is responsible for redirecting the user to the OAuth authorization URL for given provider A cookie is stored in user's browser with a random identifier that is later used to verify the authenticity of the request

func SignInPage added in v0.12.0

func SignInPage() web.HandlerFunc

SignInPage renders the sign in page

func SignOut added in v0.6.0

func SignOut() web.HandlerFunc

SignOut remove auth cookies

func SignUp

func SignUp() web.HandlerFunc

SignUp is the entry point for installation / signup

func Sitemap added in v0.16.0

func Sitemap() web.HandlerFunc

Sitemap returns the sitemap.xml of current site

func TotalUnreadNotifications added in v0.10.0

func TotalUnreadNotifications() web.HandlerFunc

TotalUnreadNotifications returns the total number of unread notifications

func UnblockUser added in v0.17.0

func UnblockUser() web.HandlerFunc

UnblockUser is used to unblock an existing user so they can use Fider again

func UpdateAdvancedSettings added in v0.13.0

func UpdateAdvancedSettings() web.HandlerFunc

UpdateAdvancedSettings update current tenant' advanced settings

func UpdatePrivacy added in v0.12.0

func UpdatePrivacy() web.HandlerFunc

UpdatePrivacy update current tenant's privacy settings

func UpdateSettings added in v0.4.0

func UpdateSettings() web.HandlerFunc

UpdateSettings update current tenant' settings

func UpdateUserSettings added in v0.6.0

func UpdateUserSettings() web.HandlerFunc

UpdateUserSettings updates current user settings

func UserSettings added in v0.10.0

func UserSettings() web.HandlerFunc

UserSettings is the current user's profile settings page

func VerifyChangeEmailKey added in v0.9.0

func VerifyChangeEmailKey() web.HandlerFunc

VerifyChangeEmailKey checks if key is correct and update user's email

func VerifySignInKey added in v0.6.0

func VerifySignInKey(kind models.EmailVerificationKind) web.HandlerFunc

VerifySignInKey checks if verify key is correct and sign in user

func VerifySignUpKey added in v0.6.0

func VerifySignUpKey() web.HandlerFunc

VerifySignUpKey checks if verify key is correct, activate the tenant and sign in user

func ViewUploadedImage added in v0.15.0

func ViewUploadedImage() web.HandlerFunc

ViewUploadedImage returns any uploaded image by given ID and size

Types

type NewLogError added in v0.17.0

type NewLogError struct {
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
}

NewLogError is the input model for UI errors

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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