Documentation ¶
Index ¶
- Constants
- func CreateInvoice(response http.ResponseWriter, request *http.Request)
- func GetVersion(response http.ResponseWriter, request *http.Request)
- func Login(response http.ResponseWriter, request *http.Request)
- func SetupCORS(w *http.ResponseWriter, _ *http.Request)
- func StartServer()
- func UpdatePassword(response http.ResponseWriter, request *http.Request)
- func UpdateUsername(response http.ResponseWriter, request *http.Request)
Constants ¶
View Source
const CreateInvoiceEndpoint = "/invoice/createInvoice"
CreateInvoiceEndpoint is the Endpoint for CreateInvoice
View Source
const GetVersionEndpoint = "/version"
GetVersionEndpoint is the Endpoint for GetVersion
View Source
const LoginEndpoint = "/user/login"
LoginEndpoint is the Endpoint for Login
View Source
const UpdatePasswordEndpoint = "/user/updatePassword"
UpdatePasswordEndpoint is the Endpoint for UpdatePassword
View Source
const UpdateUsernameEndpoint = "/user/updateUsername"
UpdateUsernameEndpoint is the Endpoint for UpdateUsername
Variables ¶
This section is empty.
Functions ¶
func CreateInvoice ¶
func CreateInvoice(response http.ResponseWriter, request *http.Request)
CreateInvoice creates an invoice with amount and optional memo
func GetVersion ¶
func GetVersion(response http.ResponseWriter, request *http.Request)
GetVersion returns Version of ELRA
func Login ¶
func Login(response http.ResponseWriter, request *http.Request)
Login is the server sided function to handle login endpoint
func SetupCORS ¶
func SetupCORS(w *http.ResponseWriter, _ *http.Request)
SetupCORS sets the CORS with Access-Control-Allow-Origin = *
func UpdatePassword ¶
func UpdatePassword(response http.ResponseWriter, request *http.Request)
UpdatePassword is the server sided function to handle update password endpoint
func UpdateUsername ¶
func UpdateUsername(response http.ResponseWriter, request *http.Request)
UpdateUsername is the server sided function to handle update username endpoint
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.