handlers

package
v0.0.0-...-1305305 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LOGGER = logging.MustGetLogger("discover")

Functions

This section is empty.

Types

type DiscoverHandler

type DiscoverHandler struct {
}

func CreateDiscoverHandler

func CreateDiscoverHandler() (DiscoverHandler, error)

func (DiscoverHandler) DiscoverParticipant

func (dh DiscoverHandler) DiscoverParticipant(w http.ResponseWriter, req *http.Request, next http.HandlerFunc)

type Failure

type Failure struct {
	Title         string `json:"title"`
	FailureReason string `json:"failure_reason"`
}

type Failure403

type Failure403 struct {
	Title         string           `json:"title"`
	FailureReason FailureReason403 `json:"failure_reason"`
}

type FailureReason403

type FailureReason403 struct {
	EnvelopeXdr string      `json:"envelope_xdr"`
	ResultCodes ResultCodes `json:"result_codes"`
	ResultXdr   string      `json:"result_xdr"`
}

type FundHandler

type FundHandler struct {
	GasServiceClient gasserviceclient.GasServiceClient
	// contains filtered or unexported fields
}

func CreateFundHandler

func CreateFundHandler() (FundHandler, error)

func (FundHandler) FundRequest

func (fh FundHandler) FundRequest(w http.ResponseWriter, req *http.Request, next http.HandlerFunc)

this endpoint is to construct a funding transaction (xdr) and return it to the anchor

func (FundHandler) SignedFundRequest

func (fh FundHandler) SignedFundRequest(w http.ResponseWriter, req *http.Request, next http.HandlerFunc)

this endpoint is for submitting a funding transaction that has been signed by the anchor

type GasAccountAndSequence

type GasAccountAndSequence struct {
	Pkey           string `json:"pkey,omitempty"`
	SequenceNumber int    `json:"SequenceNumber,omitempty"`
}

type OnBoardingHandler

type OnBoardingHandler struct {
	VaultSession     secrets.Client
	GasServiceClient gasserviceclient.GasServiceClient
	// contains filtered or unexported fields
}

func CreateOnBoardingHandler

func CreateOnBoardingHandler() (OnBoardingHandler, error)

func (OnBoardingHandler) OnBoardAsset

func (oh OnBoardingHandler) OnBoardAsset(w http.ResponseWriter, req *http.Request)

func (OnBoardingHandler) RegisterAnchor

func (oh OnBoardingHandler) RegisterAnchor(w http.ResponseWriter, request *http.Request)

type Operations

type Operations struct {
	ParticipantRegistryClient pr_client.PRServiceClient
	CryptoClient              crypto_client.CryptoServiceClient
	VaultSession              utils.Session
	GasServiceClient          gasserviceclient.GasServiceClient
	StrongHoldAnchorID        string
}

func CreateAnchorOperations

func CreateAnchorOperations() (Operations, error)

func (Operations) WithDraw

type ResultCodes

type ResultCodes struct {
	Transaction string `json:"transaction"`
}

type SignedXDR

type SignedXDR struct {
	OneSignedXDR string `json:"oneSignedXDR,omitempty"`
}

type Success

type Success struct {
	Hash   string `json:"hash"`
	Ledger string `json:"ledger"`
}

type TrustHandler

type TrustHandler struct {
	VaultSession     secrets.Client
	GasServiceClient gasserviceclient.GasServiceClient
	// contains filtered or unexported fields
}

func CreateTrustHandler

func CreateTrustHandler() (TrustHandler, error)

func (TrustHandler) AllowTrust

func (th TrustHandler) AllowTrust(w http.ResponseWriter, req *http.Request, next http.HandlerFunc)

func (TrustHandler) GetIssuedAssets

func (th TrustHandler) GetIssuedAssets(w http.ResponseWriter, req *http.Request, next http.HandlerFunc)

Jump to

Keyboard shortcuts

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