Documentation ¶
Index ¶
- Variables
- func DisplayConfirmation(w http.ResponseWriter, r *http.Request, s *SignUpForm)
- func DisplayPostForm(w http.ResponseWriter, r *http.Request, p *PostForm)
- func DisplayPostPreview(w http.ResponseWriter, r *http.Request, p *PostForm)
- func DisplaySignUpForm(w http.ResponseWriter, r *http.Request, s *SignUpForm)
- func DisplayUploadImageForm(w http.ResponseWriter, r *http.Request, u *UploadImageForm)
- func DisplayUploadVideoForm(w http.ResponseWriter, r *http.Request, u *UploadVideoForm)
- func FeedHandler(w http.ResponseWriter, r *http.Request)
- func FindHandler(w http.ResponseWriter, r *http.Request)
- func FooHandler(w http.ResponseWriter, r *http.Request)
- func FriendsHandler(w http.ResponseWriter, r *http.Request)
- func GenerateUUID() string
- func HomeHandler(w http.ResponseWriter, r *http.Request)
- func LoginHandler(w http.ResponseWriter, r *http.Request)
- func LogoutHandler(w http.ResponseWriter, r *http.Request)
- func MyProfileHandler(w http.ResponseWriter, r *http.Request)
- func PopulateFormFields(r *http.Request, s *SignUpForm)
- func PopulatePostFormFields(r *http.Request, p *PostForm)
- func PostPreviewHandler(w http.ResponseWriter, r *http.Request)
- func ProcessSignUpForm(w http.ResponseWriter, r *http.Request, s *SignUpForm)
- func ProcessUploadImage(w http.ResponseWriter, r *http.Request, u *UploadImageForm)
- func ProcessUploadVideo(w http.ResponseWriter, r *http.Request, u *UploadVideoForm)
- func ProfileHandler(w http.ResponseWriter, r *http.Request)
- func RegisterHandler(w http.ResponseWriter, r *http.Request)
- func RenderTemplate(w http.ResponseWriter, templateFile string, templateData interface{})
- func RenderUnsafeTemplate(w http.ResponseWriter, templateFile string, templateData interface{})
- func SignUpHandler(w http.ResponseWriter, r *http.Request)
- func TriggerPanicHandler(w http.ResponseWriter, r *http.Request)
- func UploadImageHandler(w http.ResponseWriter, r *http.Request)
- func UploadVideoHandler(w http.ResponseWriter, r *http.Request)
- func ValidatePostForm(w http.ResponseWriter, r *http.Request, p *PostForm)
- func ValidateSignUpForm(w http.ResponseWriter, r *http.Request, s *SignUpForm)
- func ValidateUploadImageForm(w http.ResponseWriter, r *http.Request, u *UploadImageForm)
- func ValidateUploadVideoForm(w http.ResponseWriter, r *http.Request, u *UploadVideoForm)
- type PostForm
- type SignUpForm
- type UploadImageForm
- type UploadVideoForm
Constants ¶
This section is empty.
Variables ¶
View Source
var MoodEmoji map[string]string
View Source
var MoodStates map[string]int
Functions ¶
func DisplayConfirmation ¶
func DisplayConfirmation(w http.ResponseWriter, r *http.Request, s *SignUpForm)
func DisplayPostForm ¶
func DisplayPostForm(w http.ResponseWriter, r *http.Request, p *PostForm)
func DisplayPostPreview ¶
func DisplayPostPreview(w http.ResponseWriter, r *http.Request, p *PostForm)
func DisplaySignUpForm ¶
func DisplaySignUpForm(w http.ResponseWriter, r *http.Request, s *SignUpForm)
DisplaySignUpForm displays the Sign Up form
func DisplayUploadImageForm ¶
func DisplayUploadImageForm(w http.ResponseWriter, r *http.Request, u *UploadImageForm)
func DisplayUploadVideoForm ¶
func DisplayUploadVideoForm(w http.ResponseWriter, r *http.Request, u *UploadVideoForm)
func FeedHandler ¶
func FeedHandler(w http.ResponseWriter, r *http.Request)
func FindHandler ¶
func FindHandler(w http.ResponseWriter, r *http.Request)
func FooHandler ¶
func FooHandler(w http.ResponseWriter, r *http.Request)
func FriendsHandler ¶
func FriendsHandler(w http.ResponseWriter, r *http.Request)
func GenerateUUID ¶
func GenerateUUID() string
func HomeHandler ¶
func HomeHandler(w http.ResponseWriter, r *http.Request)
func LoginHandler ¶
func LoginHandler(w http.ResponseWriter, r *http.Request)
func LogoutHandler ¶
func LogoutHandler(w http.ResponseWriter, r *http.Request)
func MyProfileHandler ¶
func MyProfileHandler(w http.ResponseWriter, r *http.Request)
func PopulateFormFields ¶
func PopulateFormFields(r *http.Request, s *SignUpForm)
func PopulatePostFormFields ¶
func PostPreviewHandler ¶
func PostPreviewHandler(w http.ResponseWriter, r *http.Request)
func ProcessSignUpForm ¶
func ProcessSignUpForm(w http.ResponseWriter, r *http.Request, s *SignUpForm)
ProcessSignUpForm
func ProcessUploadImage ¶
func ProcessUploadImage(w http.ResponseWriter, r *http.Request, u *UploadImageForm)
func ProcessUploadVideo ¶
func ProcessUploadVideo(w http.ResponseWriter, r *http.Request, u *UploadVideoForm)
func ProfileHandler ¶
func ProfileHandler(w http.ResponseWriter, r *http.Request)
func RegisterHandler ¶
func RegisterHandler(w http.ResponseWriter, r *http.Request)
func RenderTemplate ¶
func RenderTemplate(w http.ResponseWriter, templateFile string, templateData interface{})
Template rendering function
func RenderUnsafeTemplate ¶
func RenderUnsafeTemplate(w http.ResponseWriter, templateFile string, templateData interface{})
func SignUpHandler ¶
func SignUpHandler(w http.ResponseWriter, r *http.Request)
func TriggerPanicHandler ¶
func TriggerPanicHandler(w http.ResponseWriter, r *http.Request)
func UploadImageHandler ¶
func UploadImageHandler(w http.ResponseWriter, r *http.Request)
func UploadVideoHandler ¶
func UploadVideoHandler(w http.ResponseWriter, r *http.Request)
func ValidatePostForm ¶
func ValidatePostForm(w http.ResponseWriter, r *http.Request, p *PostForm)
func ValidateSignUpForm ¶
func ValidateSignUpForm(w http.ResponseWriter, r *http.Request, s *SignUpForm)
ValidateSignUpForm validates the Sign Up form's fields
func ValidateUploadImageForm ¶
func ValidateUploadImageForm(w http.ResponseWriter, r *http.Request, u *UploadImageForm)
func ValidateUploadVideoForm ¶
func ValidateUploadVideoForm(w http.ResponseWriter, r *http.Request, u *UploadVideoForm)
Types ¶
type SignUpForm ¶
type UploadImageForm ¶
Click to show internal directories.
Click to hide internal directories.