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) IndexPageHandler() 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) OpenChangePwdHandler() func(http.ResponseWriter, *http.Request)
- func (app *Application) RegisterHandler(w http.ResponseWriter, r *http.Request)
- func (app *Application) TokenAuthHandler() func(http.ResponseWriter, *http.Request)
- func (app *Application) UpdateUserHandler() func(http.ResponseWriter, *http.Request)
Constants ¶
This section is empty.
Variables ¶
View Source
var PORT = "6000"
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) IndexPageHandler ¶
func (app *Application) IndexPageHandler() 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) OpenChangePwdHandler ¶
func (app *Application) OpenChangePwdHandler() func(http.ResponseWriter, *http.Request)
func (*Application) RegisterHandler ¶
func (app *Application) RegisterHandler(w http.ResponseWriter, r *http.Request)
func (*Application) TokenAuthHandler ¶
func (app *Application) TokenAuthHandler() func(http.ResponseWriter, *http.Request)
func (*Application) UpdateUserHandler ¶
func (app *Application) UpdateUserHandler() func(http.ResponseWriter, *http.Request)
Click to show internal directories.
Click to hide internal directories.