controller

package
v0.0.0-...-c6d32f8 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIRegisterChromeGET

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

func APIVerifyUserGET

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

func AboutGET

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

Displays the default home page

func AdminAllGET

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

Displays the default home page

func AdminApproveGET

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

func AdminGET

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

Displays the default home page

func AdminRejectGET

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

func AdminUnverifyGET

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

func AdminUserGET

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

Displays the default home page

func ContactGET

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

func ContactPOST

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

func CronNotifyEmailExpireGET

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

func CurrentUserId

func CurrentUserId(r *http.Request) (uint32, bool)

Returns the user_id in uint32 and whether the a user is logged in

func EmailVerificationGET

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

func Error401

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

Error401 handles 401 - Unauthorized

func Error404

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

Error404 handles 404 - Page Not Found

func Error500

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

Error500 handles 500 - Internal Server Error

func Index

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

Displays the default home page

func InitialPhotoDeleteGET

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

func InitialPhotoGET

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

func InvalidToken

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

InvalidToken handles CSRF attacks

func LoginGET

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

func LoginPOST

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

func Logout

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

func PhotoDeleteGET

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

func PhotoDownloadGET

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

func PhotoPOST

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

Displays the default home page

func PhotoUploadGET

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

func PublicUsernameGET

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

func RegisterGET

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

func RegisterPOST

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

func Static

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

Static maps static files

func TermsGET

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

Displays the default home page

func UserEmailGET

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

func UserEmailPOST

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

func UserInformationGET

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

func UserInformationPOST

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

func UserPasswordGET

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

func UserPasswordPOST

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

func UserProfileGET

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

func UserSiteGET

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

func UserSitePOST

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

func VerifyUsernameGET

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

Displays the default home page

func WatermarkImagesGET

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

Types

type CaptchaResponse

type CaptchaResponse struct {
	// contains filtered or unexported fields
}

type ChromeInfo

type ChromeInfo struct {
	Userkey string
	Token   string
}

type Ethnicity_type

type Ethnicity_type struct {
	E1 uint8
	E2 uint8
	E3 uint8
	E4 uint8
	E5 uint8
	E6 uint8
	E7 uint8
	E8 uint8
	E9 uint8
}

type Image

type Image struct {
	Id        int
	Name      string
	Path      string
	Date      string
	Status_id int
	Initial   int
	Note      string
}

type User

type User struct {
	Id              int
	FirstName       string
	LastName        string
	Images          []Image
	Token           string
	VerifiedCount   int
	UnverifiedCount int
	SiteCount       int
	Ninja           bool
	Email           bool
}

type VerifiedNinja

type VerifiedNinja struct {
	RegisteredUsername   bool `json:RegisteredUsernames`
	PrivatePhotoVerified bool `json:PrivatePhotoVerified`
	PublicPhotoVerified  bool `json:PublicPhotoVerified`
	VerifiedNinja        bool `json:VerifiedNinja`
}

Jump to

Keyboard shortcuts

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