routeHandlers

package
v0.0.0-...-1124c96 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This, though a global variable exists in its own thread when running, so is fine.

Functions

func ComposeHandler

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

func HomeHandler

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

func LoggedInHandler

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

LoggedInHandler works

func LoginHandler

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

LoginHandler handles authentication and session creation for every login

func LogoutHandler

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

logoutHandler renders the logout page (home page) on button click

func OTPHandler

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

OTPHandler works

func RenderRoomChoicePage

func RenderRoomChoicePage(w http.ResponseWriter, r *http.Request, user []util.UserData, x int)

func RenderRoomData

func RenderRoomData(w http.ResponseWriter, r *http.Request, user []util.UserData)

func RenderUserRoom

func RenderUserRoom(w http.ResponseWriter, r *http.Request, user []util.UserData)

func RoomCreationHandler

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

func RoomHandler

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

func RoomsHandler

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

func SentMailHandler

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

SentMailHandler works

func SetupRouting

func SetupRouting(r mux.Router) mux.Router

func SignupHandler

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

func UserRoomHandler

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

func VerifyAndRoute

func VerifyAndRoute(username string, password string, phno string, w http.ResponseWriter, r *http.Request)

Types

type Emails

type Emails struct {
	From_addr string
	Body      string
}

type Rooms

type Rooms struct {
	RoomName string
	Members  string
	Admins   string
}

type RoomsUser

type RoomsUser struct {
	Rooms string
}

Jump to

Keyboard shortcuts

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