server

package
v0.0.0-...-772481a Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2019 License: ISC Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuditHandler

func AuditHandler(w http.ResponseWriter, req *http.Request)

audit a contract by giving the coin symbol, contract hex and contract transaction from the contract which needs to be audited

func AuditSiteHandler

func AuditSiteHandler(w http.ResponseWriter, req *http.Request)

func HomeHandler

func HomeHandler(w http.ResponseWriter, r *http.Request)

func InitiateHandler

func InitiateHandler(w http.ResponseWriter, req *http.Request)

initiate a contract by parsing the post request it parses the coin symbol, counter party address, amount and the wif

func InitiateSiteHandler

func InitiateSiteHandler(w http.ResponseWriter, r *http.Request)

func ParticipateHandler

func ParticipateHandler(w http.ResponseWriter, req *http.Request)

func RedemptionHandler

func RedemptionHandler(w http.ResponseWriter, req *http.Request)

func RedemptionSiteHandler

func RedemptionSiteHandler(w http.ResponseWriter, r *http.Request)

func SecretHandler

func SecretHandler(w http.ResponseWriter, req *http.Request)

func Start

func Start()

Types

type Response

type Response struct {
	Success bool        `json:"success"`
	Data    interface{} `json:"result"`
	Error   string      `json:"error"`
}

Jump to

Keyboard shortcuts

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