controllers

package
v0.0.0-...-d8636b4 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PORT = "6000"

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) 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)

Jump to

Keyboard shortcuts

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