Documentation ¶
Index ¶
- Variables
- func DisplayConfirmation(w http.ResponseWriter, r *http.Request, s *SignUpForm)
- func DisplayLoginForm(w http.ResponseWriter, r *http.Request, l *LoginForm)
- 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(env *common.Env) http.HandlerFunc
- func FindHandler(w http.ResponseWriter, r *http.Request)
- func FooHandler(w http.ResponseWriter, r *http.Request)
- func FriendsHandler(env *common.Env) http.HandlerFunc
- func HomeHandler(w http.ResponseWriter, r *http.Request)
- func LoginHandler(e *common.Env) http.Handler
- func LogoutHandler(w http.ResponseWriter, r *http.Request)
- func MyProfileHandler(env *common.Env) http.HandlerFunc
- func PopulateFormFields(r *http.Request, s *SignUpForm)
- func PopulateLoginFormFields(r *http.Request, l *LoginForm)
- func PopulatePostFormFields(r *http.Request, p *PostForm)
- func PostPreviewHandler(w http.ResponseWriter, r *http.Request)
- func ProcessLoginForm(w http.ResponseWriter, r *http.Request, l *LoginForm, e *common.Env)
- func ProcessSignUpForm(w http.ResponseWriter, r *http.Request, s *SignUpForm, e *common.Env)
- func ProcessUploadImage(w http.ResponseWriter, r *http.Request, u *UploadImageForm)
- func ProcessUploadVideo(w http.ResponseWriter, r *http.Request, u *UploadVideoForm)
- func ProfileHandler(env *common.Env) http.HandlerFunc
- func RegisterHandler(w http.ResponseWriter, r *http.Request)
- func RenderGatedTemplate(w http.ResponseWriter, templateFile string, templateData interface{})
- func RenderTemplate(w http.ResponseWriter, templateFile string, templateData interface{})
- func SignUpHandler(e *common.Env) http.Handler
- func TemplateBundleHandler(env *common.Env) http.Handler
- 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 ValidateLoginForm(w http.ResponseWriter, r *http.Request, l *LoginForm, e *common.Env)
- func ValidatePostForm(w http.ResponseWriter, r *http.Request, p *PostForm)
- func ValidateSignUpForm(w http.ResponseWriter, r *http.Request, s *SignUpForm, e *common.Env)
- func ValidateUploadImageForm(w http.ResponseWriter, r *http.Request, u *UploadImageForm)
- func ValidateUploadVideoForm(w http.ResponseWriter, r *http.Request, u *UploadVideoForm)
- type LoginForm
- 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
View Source
var WebAppRoot = os.Getenv("GOPHERFACE_APP_ROOT")
Functions ¶
func DisplayConfirmation ¶
func DisplayConfirmation(w http.ResponseWriter, r *http.Request, s *SignUpForm)
func DisplayLoginForm ¶
func DisplayLoginForm(w http.ResponseWriter, r *http.Request, l *LoginForm)
DisplayLoginForm displays the Sign Up form
func DisplayPostForm ¶
func DisplayPostForm(w http.ResponseWriter, r *http.Request, p *PostForm)
DisplaySignUpForm displays the Sign Up form
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(env *common.Env) http.HandlerFunc
func FindHandler ¶
func FindHandler(w http.ResponseWriter, r *http.Request)
func FooHandler ¶
func FooHandler(w http.ResponseWriter, r *http.Request)
func FriendsHandler ¶
func FriendsHandler(env *common.Env) http.HandlerFunc
func HomeHandler ¶
func HomeHandler(w http.ResponseWriter, r *http.Request)
func LogoutHandler ¶
func LogoutHandler(w http.ResponseWriter, r *http.Request)
func MyProfileHandler ¶
func MyProfileHandler(env *common.Env) http.HandlerFunc
func PopulateFormFields ¶
func PopulateFormFields(r *http.Request, s *SignUpForm)
func PopulateLoginFormFields ¶
func PopulatePostFormFields ¶
func PostPreviewHandler ¶
func PostPreviewHandler(w http.ResponseWriter, r *http.Request)
func ProcessLoginForm ¶
ProcessLoginForm
func ProcessSignUpForm ¶
func ProcessSignUpForm(w http.ResponseWriter, r *http.Request, s *SignUpForm, e *common.Env)
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(env *common.Env) http.HandlerFunc
func RegisterHandler ¶
func RegisterHandler(w http.ResponseWriter, r *http.Request)
func RenderGatedTemplate ¶
func RenderGatedTemplate(w http.ResponseWriter, templateFile string, templateData interface{})
func RenderTemplate ¶
func RenderTemplate(w http.ResponseWriter, templateFile string, templateData interface{})
Template rendering function
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 ValidateLoginForm ¶
ValidateLoginForm validates the Sign Up form's fields
func ValidatePostForm ¶
func ValidatePostForm(w http.ResponseWriter, r *http.Request, p *PostForm)
ValidateSignUpForm validates the Sign Up form's fields
func ValidateSignUpForm ¶
func ValidateSignUpForm(w http.ResponseWriter, r *http.Request, s *SignUpForm, e *common.Env)
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.