handlers

package
v0.0.0-...-d41341d Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2018 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Index

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)

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(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 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 PopulatePostFormFields(r *http.Request, p *PostForm)

func PostPreviewHandler

func PostPreviewHandler(w http.ResponseWriter, r *http.Request)

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(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(e *common.Env) http.Handler

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)

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 PostForm

type PostForm struct {
	FieldNames  []string
	Fields      map[string]string
	Errors      map[string]string
	Moods       map[string]int
	MoodEmoji   map[string]string
	CurrentMood int
}

type SignUpForm

type SignUpForm struct {
	FieldNames []string
	Fields     map[string]string
	Errors     map[string]string
}

type UploadImageForm

type UploadImageForm struct {
	FieldNames []string
	Fields     map[string]string
	Errors     map[string]string
}

type UploadVideoForm

type UploadVideoForm struct {
	FieldNames []string
	Fields     map[string]string
	Errors     map[string]string
}

Jump to

Keyboard shortcuts

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