controllers

package
v0.0.0-...-7e74fd6 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandlers

func NewHandlers(r *Repository)

Types

type AuthUser

type AuthUser struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type Repository

type Repository struct {
	App *config.Application
	DB  database.DatabaseRepository
}
var Repo *Repository

func NewRepo

func NewRepo(app *config.Application, db *mongo.Database) *Repository

func (*Repository) StatusHandler

func (m *Repository) StatusHandler(w http.ResponseWriter, r *http.Request)

type UserRepository

type UserRepository Repository
var User *UserRepository

func (*UserRepository) GetUsers

func (m *UserRepository) GetUsers(w http.ResponseWriter, r *http.Request)

func (*UserRepository) Login

func (m *UserRepository) Login(w http.ResponseWriter, r *http.Request)

func (*UserRepository) Register

func (m *UserRepository) Register(w http.ResponseWriter, r *http.Request)

func (*UserRepository) RequestResetPassword

func (m *UserRepository) RequestResetPassword(w http.ResponseWriter, r *http.Request)

func (*UserRepository) UpdatePassword

func (m *UserRepository) UpdatePassword(w http.ResponseWriter, r *http.Request)

func (*UserRepository) UpdateUserEmail

func (m *UserRepository) UpdateUserEmail(w http.ResponseWriter, r *http.Request)

func (*UserRepository) UpdateUserName

func (m *UserRepository) UpdateUserName(w http.ResponseWriter, r *http.Request)

func (*UserRepository) UpdateUserPassword

func (m *UserRepository) UpdateUserPassword(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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