controllers

package
v0.0.0-...-8fd614f Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PORT = "4000"

Functions

func GenerateJWT

func GenerateJWT(email string) (string, error)

Types

type Application

type Application struct {
	Fabric *blockchain.FabricSetup
}

func (*Application) ChangePwdHandler

func (app *Application) ChangePwdHandler() func(http.ResponseWriter, *http.Request)

func (*Application) DeleteUserHandler

func (app *Application) DeleteUserHandler() func(http.ResponseWriter, *http.Request)

func (*Application) GetAllUsersDataHandler

func (app *Application) GetAllUsersDataHandler() func(http.ResponseWriter, *http.Request)

func (*Application) GetUserDataByEmailHandler

func (app *Application) GetUserDataByEmailHandler() func(http.ResponseWriter, *http.Request)

func (*Application) LoginHandler

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

func (*Application) LogoutHandler

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

func (*Application) RegisterHandler

func (app *Application) RegisterHandler(w http.ResponseWriter, r *http.Request)

func (*Application) UpdateUserHandler

func (app *Application) UpdateUserHandler() func(http.ResponseWriter, *http.Request)

type ModelUserData

type ModelUserData struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Email       string `json:"email"`
	Password    string `json:"password"`
	OldPassword string `json:"oldPassword"`
	Company     string `json:"company"`
	Occupation  string `json:"occupation"`
	Salary      string `json:"salary"`
	UserType    string `json:"userType"`
}

Jump to

Keyboard shortcuts

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