server

package
v0.0.0-...-8094d75 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2020 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

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 StartServer

func StartServer()

StartServer starts the whole API Server

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.

Jump to

Keyboard shortcuts

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