Documentation
¶
Index ¶
- func AccessDeniedPage() web.HandlerFunc
- func AdvancedSettingsPage() web.HandlerFunc
- func BlockUser() web.HandlerFunc
- func CancelTenantDeletion() web.HandlerFunc
- func CancelTenantDeletionByOwner() web.HandlerFunc
- func ChangeUserEmail() web.HandlerFunc
- func ChangeUserRole() web.HandlerFunc
- func CheckAvailability() web.HandlerFunc
- func CommentFeed() web.HandlerFunc
- func CompleteSignInProfile() web.HandlerFunc
- func CompleteSignInProfilePage() web.HandlerFunc
- func CreateStripeAnnualCheckoutSession() web.HandlerFunc
- func CreateStripeCheckoutSession() web.HandlerFunc
- func CreateStripePortalSession() web.HandlerFunc
- func CreateTenant() web.HandlerFunc
- func CreateWebhook() web.HandlerFunc
- func DangerZonePage() web.HandlerFunc
- func DeleteUser() web.HandlerFunc
- func DeleteWebhook() web.HandlerFunc
- func ExportBackupZip() web.HandlerFunc
- func ExportPostsToCSV() web.HandlerFunc
- func ExportTagsJSON() web.HandlerFunc
- func Favicon() web.HandlerFunc
- func GeneralSettingsPage() web.HandlerFunc
- func GetAllNotifications() web.HandlerFunc
- func GetModerationCount() web.HandlerFunc
- func GetModerationItems() web.HandlerFunc
- func GetOAuthConfig() web.HandlerFunc
- func GetWebhookProps() web.HandlerFunc
- func GlobalFeed() web.HandlerFunc
- func Gravatar() web.HandlerFunc
- func Health() web.HandlerFunc
- func ImportTagsJSON() web.HandlerFunc
- func Index() web.HandlerFunc
- func LegalPage(title, file string) web.HandlerFunc
- func LetterAvatar() web.HandlerFunc
- func LogError() web.HandlerFunc
- func LoginEmailSentPage() web.HandlerFunc
- func ManageAuthentication() web.HandlerFunc
- func ManageBilling() web.HandlerFunc
- func ManageMembers() web.HandlerFunc
- func ManageTags() web.HandlerFunc
- func ManageWebhooks() web.HandlerFunc
- func ModerationPage() web.HandlerFunc
- func NotInvitedPage() web.HandlerFunc
- func Notifications() web.HandlerFunc
- func OAuthCallback() web.HandlerFunc
- func OAuthEcho() web.HandlerFunc
- func OAuthToken() web.HandlerFunc
- func Page(title, description, page string) web.HandlerFunc
- func PostDetails() web.HandlerFunc
- func PreviewWebhook() web.HandlerFunc
- func ReadAllNotifications() web.HandlerFunc
- func ReadNotification() web.HandlerFunc
- func RegenerateAPIKey() web.HandlerFunc
- func RequestTenantDeletion() web.HandlerFunc
- func ResendSignInCode() web.HandlerFunc
- func ResendSignUpEmail() web.HandlerFunc
- func RoadmapPage() web.HandlerFunc
- func RobotsTXT() web.HandlerFunc
- func SaveOAuthConfig() web.HandlerFunc
- func SetSystemProviderStatus() web.HandlerFunc
- func SignInByEmail() web.HandlerFunc
- func SignInByEmailWithName() web.HandlerFunc
- func SignInByOAuth() web.HandlerFunc
- func SignInPage() web.HandlerFunc
- func SignOut() web.HandlerFunc
- func SignUp() web.HandlerFunc
- func Sitemap() web.HandlerFunc
- func TestWebhook() web.HandlerFunc
- func TotalUnreadNotifications() web.HandlerFunc
- func TrustUser() web.HandlerFunc
- func UnblockUser() web.HandlerFunc
- func UntrustUser() web.HandlerFunc
- func UpdateAdvancedSettings() web.HandlerFunc
- func UpdateEmailAuthAllowed() web.HandlerFunc
- func UpdatePrivacySettings() web.HandlerFunc
- func UpdateSettings() web.HandlerFunc
- func UpdateUserSettings() web.HandlerFunc
- func UpdateWebhook() web.HandlerFunc
- func UserSettings() web.HandlerFunc
- func VerifyChangeEmailKey() web.HandlerFunc
- func VerifySignInCode() web.HandlerFunc
- func VerifySignInKey(kind enum.EmailVerificationKind) web.HandlerFunc
- func VerifySignUpKey() web.HandlerFunc
- func ViewUploadedImage() web.HandlerFunc
- type AtomFeed
- type Author
- type Category
- type Content
- type Entry
- type ImportTagsResult
- type Link
- type NewLogError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessDeniedPage ¶ added in v0.34.0
func AccessDeniedPage() web.HandlerFunc
AccessDeniedPage renders the access denied page for OAuth role mismatches
func AdvancedSettingsPage ¶ added in v0.13.0
func AdvancedSettingsPage() web.HandlerFunc
AdvancedSettingsPage is the advanced settings page
func BlockUser ¶ added in v0.17.0
func BlockUser() web.HandlerFunc
BlockUser is used to block an existing user from using Fider
func CancelTenantDeletion ¶ added in v0.36.0
func CancelTenantDeletion() web.HandlerFunc
CancelTenantDeletion cancels a scheduled deletion. The unguessable key in the query string is the sole authorisation, so the emailed cancel link works without the owner being logged in (it only ever restores access).
func CancelTenantDeletionByOwner ¶ added in v0.36.0
func CancelTenantDeletionByOwner() web.HandlerFunc
CancelTenantDeletionByOwner cancels a scheduled deletion from the Danger Zone page. Unlike the emailed link, this is authorised by the logged-in owner rather than a key.
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 CommentFeed ¶ added in v0.28.0
func CommentFeed() web.HandlerFunc
CommentFeed Returns the ATOM feed for a single post, with its comments as entries
func CompleteSignInProfile ¶ added in v0.6.0
func CompleteSignInProfile() web.HandlerFunc
CompleteSignInProfile handles the action to update user profile
func CompleteSignInProfilePage ¶ added in v0.31.0
func CompleteSignInProfilePage() web.HandlerFunc
CompleteSignInProfilePage renders the complete profile page for code flow
func CreateStripeAnnualCheckoutSession ¶ added in v0.35.0
func CreateStripeAnnualCheckoutSession() web.HandlerFunc
CreateStripeAnnualCheckoutSession creates a Stripe checkout session for annual subscriptions
func CreateStripeCheckoutSession ¶ added in v0.33.0
func CreateStripeCheckoutSession() web.HandlerFunc
CreateStripeCheckoutSession creates a Stripe checkout session for new subscriptions
func CreateStripePortalSession ¶ added in v0.33.0
func CreateStripePortalSession() web.HandlerFunc
CreateStripePortalSession creates a Stripe customer portal session
func CreateWebhook ¶ added in v0.20.0
func CreateWebhook() web.HandlerFunc
func DangerZonePage ¶ added in v0.36.0
func DangerZonePage() web.HandlerFunc
DangerZonePage renders the admin Danger Zone (delete entire site).
func DeleteUser ¶ added in v0.13.0
func DeleteUser() web.HandlerFunc
DeleteUser erases current user personal data and sign them out
func DeleteWebhook ¶ added in v0.20.0
func DeleteWebhook() web.HandlerFunc
func ExportBackupZip ¶ added in v0.18.1
func ExportBackupZip() web.HandlerFunc
ExportBackupZip returns a Zip file with all content
func ExportPostsToCSV ¶ added in v0.15.0
func ExportPostsToCSV() web.HandlerFunc
ExportPostsToCSV returns a CSV with all posts
func ExportTagsJSON ¶ added in v0.34.0
func ExportTagsJSON() web.HandlerFunc
ExportTagsJSON returns a JSON file with all tags
func Favicon ¶ added in v0.18.0
func Favicon() web.HandlerFunc
Favicon returns the Fider favicon by given size
func GeneralSettingsPage ¶ added in v0.13.0
func GeneralSettingsPage() web.HandlerFunc
GeneralSettingsPage is the general settings page
func GetAllNotifications ¶ added in v0.23.0
func GetAllNotifications() web.HandlerFunc
GetAllNotifications will get all the notifications for the new modal
func GetModerationCount ¶ added in v0.33.0
func GetModerationCount() web.HandlerFunc
GetModerationCount returns the count of items awaiting moderation
func GetModerationItems ¶ added in v0.33.0
func GetModerationItems() web.HandlerFunc
GetModerationItems returns all unmoderated posts and comments
func GetOAuthConfig ¶ added in v0.15.0
func GetOAuthConfig() web.HandlerFunc
GetOAuthConfig returns OAuth config based on given provider
func GetWebhookProps ¶ added in v0.20.0
func GetWebhookProps() web.HandlerFunc
func GlobalFeed ¶ added in v0.28.0
func GlobalFeed() web.HandlerFunc
GlobalFeed Returns the global ATOM feed with the 30 most recent posts as entries
func Gravatar ¶ added in v0.18.0
func Gravatar() web.HandlerFunc
Gravatar returns a gravatar picture of fallsback to letter avatar based on name
func ImportTagsJSON ¶ added in v0.34.0
func ImportTagsJSON() web.HandlerFunc
ImportTagsJSON accepts a JSON array of tags and creates missing ones
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 LetterAvatar ¶ added in v0.5.0
func LetterAvatar() web.HandlerFunc
LetterAvatar returns a letter gravatar picture based on given name
func LogError ¶ added in v0.17.0
func LogError() web.HandlerFunc
LogError logs an error coming from the UI
func LoginEmailSentPage ¶ added in v0.28.0
func LoginEmailSentPage() web.HandlerFunc
func ManageAuthentication ¶ added in v0.15.0
func ManageAuthentication() web.HandlerFunc
ManageAuthentication is the page used by administrators to change site authentication settings
func ManageBilling ¶ added in v0.20.0
func ManageBilling() web.HandlerFunc
ManageBilling is the page used by administrators for Stripe billing 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 ManageWebhooks ¶ added in v0.20.0
func ManageWebhooks() web.HandlerFunc
ManageWebhooks is the page used by administrators to configure webhooks
func ModerationPage ¶ added in v0.33.0
func ModerationPage() web.HandlerFunc
ModerationPage is the moderation administration page
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, page 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 PreviewWebhook ¶ added in v0.20.0
func PreviewWebhook() web.HandlerFunc
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 RequestTenantDeletion ¶ added in v0.36.0
func RequestTenantDeletion() web.HandlerFunc
RequestTenantDeletion schedules deletion of the whole site after a grace period. Only the account owner may do this, and only on hosted multi-tenant instances.
func ResendSignInCode ¶ added in v0.31.0
func ResendSignInCode() web.HandlerFunc
ResendSignInCode invalidates the previous code and sends a new one
func ResendSignUpEmail ¶ added in v0.31.0
func ResendSignUpEmail() web.HandlerFunc
ResendSignUpEmail resends the verification email for pending tenant signup
func RoadmapPage ¶ added in v0.36.0
func RoadmapPage() web.HandlerFunc
RoadmapPage renders the roadmap board. Pro tenants and self-hosted installations get the full data; other tenants render the page with no data so the client shows the upgrade call-to-action.
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 SetSystemProviderStatus ¶ added in v0.30.0
func SetSystemProviderStatus() web.HandlerFunc
SetSystemProviderStatus is used to enable/disable built-in OAuth providers for a tenant
func SignInByEmail ¶ added in v0.6.0
func SignInByEmail() web.HandlerFunc
SignInByEmail checks if user exists and sends code only for existing users
func SignInByEmailWithName ¶ added in v0.31.0
func SignInByEmailWithName() web.HandlerFunc
SignInByEmailWithName sends verification code for new users with their name
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 Sitemap ¶ added in v0.16.0
func Sitemap() web.HandlerFunc
Sitemap returns the sitemap.xml of current site
func TestWebhook ¶ added in v0.20.0
func TestWebhook() web.HandlerFunc
func TotalUnreadNotifications ¶ added in v0.10.0
func TotalUnreadNotifications() web.HandlerFunc
TotalUnreadNotifications returns the total number of unread notifications
func TrustUser ¶ added in v0.33.0
func TrustUser() web.HandlerFunc
TrustUser is used to trust an existing user
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 UntrustUser ¶ added in v0.33.0
func UntrustUser() web.HandlerFunc
UntrustUser is used to untrust an existing user
func UpdateAdvancedSettings ¶ added in v0.13.0
func UpdateAdvancedSettings() web.HandlerFunc
UpdateAdvancedSettings update current tenant' advanced settings
func UpdateEmailAuthAllowed ¶ added in v0.19.0
func UpdateEmailAuthAllowed() web.HandlerFunc
UpdateEmailAuthAllowed update current tenant's allow email auth settings
func UpdatePrivacySettings ¶ added in v0.28.0
func UpdatePrivacySettings() web.HandlerFunc
UpdatePrivacySettings 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 UpdateWebhook ¶ added in v0.20.0
func UpdateWebhook() web.HandlerFunc
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 VerifySignInCode ¶ added in v0.31.0
func VerifySignInCode() web.HandlerFunc
VerifySignInCode verifies the code entered by the user and signs them in
func VerifySignInKey ¶ added in v0.6.0
func VerifySignInKey(kind enum.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 Entry ¶ added in v0.28.0
type Entry struct {
Title string `xml:"title,omitempty"`
Id string `xml:"id"`
Published string `xml:"published"`
Updated string `xml:"updated,omitempty"`
Link []Link `xml:"link"`
Author *Author `xml:"author"`
Summary *Content `xml:"summary"`
Content *Content `xml:"content"`
Categories []*Category `xml:"category,omitempty"`
}
type ImportTagsResult ¶ added in v0.34.0
type ImportTagsResult struct {
Created int `json:"created"`
Skipped int `json:"skipped"`
Errors []string `json:"errors"`
}
ImportTagsResult is returned after an import
type NewLogError ¶ added in v0.17.0
NewLogError is the input model for UI errors