handlers

package
v0.0.31 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2018 License: Apache-2.0, BSD-2-Clause-Views, MIT Imports: 31 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               net.HTTPClientInterface                 `inject:""`
	Horizon              horizon.HorizonInterface                `inject:""`
	Driver               db.Driver                               `inject:""`
	Repository           db.RepositoryInterface                  `inject:""`
	StellarTomlResolver  external.StellarTomlClientInterface     `inject:""`
	FederationResolver   federation.ClientInterface              `inject:""`
	TransactionSubmitter submitter.TransactionSubmitterInterface `inject:""`
	PaymentListener      *listener.PaymentListener               `inject:""`
}

RequestHandler implements bridge server request handlers

func (*RequestHandler) AdminReceivedPayment added in v0.0.27

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

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

func (*RequestHandler) AdminReceivedPayments added in v0.0.27

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

AdminReceivedPayments implements /admin/received-payments endpoint

func (*RequestHandler) AdminSentTransactions added in v0.0.27

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 added in v0.0.22

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