Documentation ¶
Index ¶
- Variables
- func GenerateJWT(email string) (string, error)
- type Application
- func (app *Application) ChangePwdHandler() func(http.ResponseWriter, *http.Request)
- func (app *Application) DeleteUserHandler() func(http.ResponseWriter, *http.Request)
- func (app *Application) GetAllUsersDataHandler() func(http.ResponseWriter, *http.Request)
- func (app *Application) GetUserDataByEmailHandler() func(http.ResponseWriter, *http.Request)
- func (app *Application) LoginHandler(w http.ResponseWriter, r *http.Request)
- func (app *Application) LogoutHandler(w http.ResponseWriter, r *http.Request)
- func (app *Application) RegisterHandler(w http.ResponseWriter, r *http.Request)
- func (app *Application) UpdateUserHandler() func(http.ResponseWriter, *http.Request)
- type ModelUserData
Constants ¶
This section is empty.
Variables ¶
View Source
var PORT = "4000"
Functions ¶
func GenerateJWT ¶
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"` }
Click to show internal directories.
Click to hide internal directories.