Documentation
¶
Index ¶
- Constants
- type Handler
- func (h *Handler) AuthMiddleware() func(http.Handler) http.Handler
- func (h *Handler) AuthenticatedOnly(next http.Handler) http.Handler
- func (h *Handler) GuestOnly(next http.Handler) http.Handler
- func (h *Handler) HandleCreatePost() http.Handler
- func (h *Handler) HandleDeleteComment() http.Handler
- func (h *Handler) HandleDeleteCommentPage() http.Handler
- func (h *Handler) HandleDeleteMedia() http.Handler
- func (h *Handler) HandleDeleteMediaPage() http.Handler
- func (h *Handler) HandleDeletePost() http.Handler
- func (h *Handler) HandleDeletePostPage() http.Handler
- func (h *Handler) HandleEditComment() http.Handler
- func (h *Handler) HandleEditCommentPage() http.Handler
- func (h *Handler) HandleEditPost() http.Handler
- func (h *Handler) HandleEditPostPage() http.Handler
- func (h *Handler) HandleForgotPassword() http.Handler
- func (h *Handler) HandleForgotPasswordPage() http.Handler
- func (h *Handler) HandleGetMedia() http.Handler
- func (h *Handler) HandleHealthz(w http.ResponseWriter, r *http.Request)
- func (h *Handler) HandleHomePage(w http.ResponseWriter, r *http.Request)
- func (h *Handler) HandleIndex(w http.ResponseWriter, r *http.Request)
- func (h *Handler) HandleListMedia() http.Handler
- func (h *Handler) HandleLogin() http.Handler
- func (h *Handler) HandleLoginPage() http.Handler
- func (h *Handler) HandleLogout() http.Handler
- func (h *Handler) HandleLogoutPage() http.Handler
- func (h *Handler) HandleMediaDialog() http.Handler
- func (h *Handler) HandleNewPostPage() http.Handler
- func (h *Handler) HandleProfilePage() http.Handler
- func (h *Handler) HandleProfilePasswordUpdate() http.Handler
- func (h *Handler) HandleProfileUpdate() http.Handler
- func (h *Handler) HandleRegister() http.Handler
- func (h *Handler) HandleRegisterPage() http.Handler
- func (h *Handler) HandleResetPassword() http.Handler
- func (h *Handler) HandleResetPasswordPage() http.Handler
- func (h *Handler) HandleStatic(w http.ResponseWriter, r *http.Request)
- func (h *Handler) HandleSubmitComment() http.Handler
- func (h *Handler) HandleUploadMedia() http.Handler
- func (h *Handler) HandleUploadMediaPage() http.Handler
- func (h *Handler) HandleViewMedia() http.Handler
- func (h *Handler) HandleViewPostPage() http.Handler
- func (h *Handler) RecoverMiddleware(next http.Handler) http.Handler
- func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Shutdown()
- type Notification
- type NotificationType
- type SessionValueNotFoundError
Constants ¶
View Source
const ServiceName = "github.com/nasermirzaei89/fullstackgo/web"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) AuthenticatedOnly ¶
func (*Handler) HandleCreatePost ¶
func (*Handler) HandleDeleteComment ¶
func (*Handler) HandleDeleteCommentPage ¶
func (*Handler) HandleDeleteMedia ¶
func (*Handler) HandleDeleteMediaPage ¶
func (*Handler) HandleDeletePost ¶
func (*Handler) HandleDeletePostPage ¶
func (*Handler) HandleEditComment ¶
func (*Handler) HandleEditCommentPage ¶
func (*Handler) HandleEditPost ¶
func (*Handler) HandleEditPostPage ¶
func (*Handler) HandleForgotPassword ¶
func (*Handler) HandleForgotPasswordPage ¶
func (*Handler) HandleGetMedia ¶
func (*Handler) HandleHealthz ¶
func (h *Handler) HandleHealthz(w http.ResponseWriter, r *http.Request)
func (*Handler) HandleHomePage ¶
func (h *Handler) HandleHomePage(w http.ResponseWriter, r *http.Request)
func (*Handler) HandleIndex ¶
func (h *Handler) HandleIndex(w http.ResponseWriter, r *http.Request)
func (*Handler) HandleListMedia ¶
func (*Handler) HandleLogin ¶
func (*Handler) HandleLoginPage ¶
func (*Handler) HandleLogout ¶
func (*Handler) HandleLogoutPage ¶
func (*Handler) HandleMediaDialog ¶
func (*Handler) HandleNewPostPage ¶
func (*Handler) HandleProfilePage ¶
func (*Handler) HandleProfilePasswordUpdate ¶
func (*Handler) HandleProfileUpdate ¶
func (*Handler) HandleRegister ¶
func (*Handler) HandleRegisterPage ¶
func (*Handler) HandleResetPassword ¶
func (*Handler) HandleResetPasswordPage ¶
func (*Handler) HandleStatic ¶
func (h *Handler) HandleStatic(w http.ResponseWriter, r *http.Request)
func (*Handler) HandleSubmitComment ¶
func (*Handler) HandleUploadMedia ¶
func (*Handler) HandleUploadMediaPage ¶
func (*Handler) HandleViewMedia ¶
func (*Handler) HandleViewPostPage ¶
func (*Handler) RecoverMiddleware ¶
type Notification ¶
type Notification struct {
Type NotificationType
Message string
}
type NotificationType ¶
type NotificationType string
const ( NotificationTypeInfo NotificationType = "info" NotificationTypeWarning NotificationType = "warning" NotificationTypeError NotificationType = "error" NotificationTypeSuccess NotificationType = "success" )
type SessionValueNotFoundError ¶
type SessionValueNotFoundError struct {
Key string
}
func (SessionValueNotFoundError) Error ¶
func (err SessionValueNotFoundError) Error() string
Click to show internal directories.
Click to hide internal directories.