handlers

package
v0.0.0-...-5d8db7d Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2018 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyPair

type KeyPair struct {
	PublicKey  string `json:"public_key"`
	PrivateKey string `json:"private_key"`
}

KeyPair struct contains key pair public and private key

type RequestHandler

type RequestHandler struct {
	Config               *config.Config                          `inject:""`
	Client               http.SimpleHTTPClientInterface          `inject:""`
	Horizon              horizon.ClientInterface                 `inject:""`
	Database             db.Database                             `inject:""`
	StellarTomlResolver  stellartoml.ClientInterface             `inject:""`
	FederationResolver   federation.ClientInterface              `inject:""`
	TransactionSubmitter submitter.TransactionSubmitterInterface `inject:""`
	PaymentListener      *listener.PaymentListener               `inject:""`
}

RequestHandler implements bridge server request handlers

func (*RequestHandler) AdminReceivedPayment

func (rh *RequestHandler) AdminReceivedPayment(w http.ResponseWriter, r *http.Request)

AdminReceivedPayment implements /admin/received-payments/{id} endpoint

func (*RequestHandler) AdminReceivedPayments

func (rh *RequestHandler) AdminReceivedPayments(w http.ResponseWriter, r *http.Request)

AdminReceivedPayments implements /admin/received-payments endpoint

func (*RequestHandler) AdminSentTransactions

func (rh *RequestHandler) AdminSentTransactions(w http.ResponseWriter, r *http.Request)

AdminReceivedPayments implements /admin/sent-transactions endpoint

func (*RequestHandler) Authorize

func (rh *RequestHandler) Authorize(w http.ResponseWriter, r *http.Request)

Authorize implements /authorize endpoint

func (*RequestHandler) Builder

func (rh *RequestHandler) Builder(w http.ResponseWriter, r *http.Request)

Builder implements /builder endpoint

func (*RequestHandler) CreateKeypair

func (rh *RequestHandler) CreateKeypair(w http.ResponseWriter, r *http.Request)

CreateKeypair implements /create-keypair endpoint

func (*RequestHandler) Payment

func (rh *RequestHandler) Payment(w http.ResponseWriter, r *http.Request)

Payment implements /payment endpoint

func (*RequestHandler) Reprocess

func (rh *RequestHandler) Reprocess(w http.ResponseWriter, r *http.Request)

Authorize implements /reprocess endpoint

Jump to

Keyboard shortcuts

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