controller

package
v0.0.0-...-e3a0aff Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorResponse = "An error occured while processinf your request"
)

Variables

This section is empty.

Functions

func AdminLoginHandler

func AdminLoginHandler(dbase *gorm.DB, w http.ResponseWriter, r *http.Request)

func AdminLogoutHandler

func AdminLogoutHandler(dbase *gorm.DB, w http.ResponseWriter, r *http.Request)

func AdminRegistrationHandler

func AdminRegistrationHandler(dbase *gorm.DB, w http.ResponseWriter, r *http.Request)

func CreatePatient

func CreatePatient(dbase *gorm.DB, w http.ResponseWriter, r *http.Request)

CreatePatient an implementation of patient's creation

func CreatePsychologist

func CreatePsychologist(dbase *gorm.DB, w http.ResponseWriter, r *http.Request)

CreatePsychologist implements psychologist creation

func FindOne

func FindOne(dbase *gorm.DB, email, password string) (map[string]interface{}, error)

func Get5LatestPsychologists

func Get5LatestPsychologists(dbase *gorm.DB, w http.ResponseWriter, r *http.Request)

func GetChats

func GetChats(dbase *gorm.DB, w http.ResponseWriter, r *http.Request)

func GetConnections

func GetConnections(dbase *gorm.DB, w http.ResponseWriter, r *http.Request)

* 1. Choose to shake the world for God 2. know how to co-operate with the Holy Spirit 3. Believe in miracle 4. Depend on the power of the Holy Spirit 5. Priase Jesus => They key to the glory store is Praise to Jesus 6. If you are not called in to ministry by God, don't do it 7. You don't have to understand just obey 8. Give your heart 9. God is absolute perfection 10.Have a conviction about God's call

func GetConversation

func GetConversation(dbase *gorm.DB, w http.ResponseWriter, r *http.Request)

func GetMonthlyActiveUsers

func GetMonthlyActiveUsers(dbase *gorm.DB, w http.ResponseWriter, r *http.Request)

func GetNumberofPatients

func GetNumberofPatients(dbase *gorm.DB, w http.ResponseWriter, r *http.Request)

func GetNumberofPsychologists

func GetNumberofPsychologists(dbase *gorm.DB, w http.ResponseWriter, r *http.Request)

func GetPatientConnections

func GetPatientConnections(dbase *gorm.DB, w http.ResponseWriter, r *http.Request)

func GetProfileHandler

func GetProfileHandler(dbase *gorm.DB, w http.ResponseWriter, r *http.Request)

func GetPsychologists

func GetPsychologists(dbase *gorm.DB, w http.ResponseWriter, r *http.Request)

func LoginHandler

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

LoginHandler implements authentication for psychologists

func LogoutHandler

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

func NewChat

func NewChat(dbase *gorm.DB, w http.ResponseWriter, r *http.Request)

func PairUsers

func PairUsers(dbase *gorm.DB, w http.ResponseWriter, r *http.Request)

func PatientLoginHandler

func PatientLoginHandler(dbase *gorm.DB, w http.ResponseWriter, r *http.Request)

func PatientLogoutHandler

func PatientLogoutHandler(dbase *gorm.DB, w http.ResponseWriter, r *http.Request)

func ResetHandler

func ResetHandler(dbase *gorm.DB, w http.ResponseWriter, r *http.Request)

func UpdatePassword

func UpdatePassword(dbase *gorm.DB, w http.ResponseWriter, r *http.Request)

func UpdateProfileHandler

func UpdateProfileHandler(dbase *gorm.DB, w http.ResponseWriter, r *http.Request)

Types

type Item

type Item struct {
	ID             uint      `json:"ID"`
	Name           string    `json:"Name"`
	PairID         uint      `json:"PairID"`
	PairEncryption string    `json:"PairEncryption"`
	PairedAt       time.Time `json:"PairedAt"`
}

Jump to

Keyboard shortcuts

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