Documentation ¶
Index ¶
- func DecodeJSONAndValidate(ctx context.Context, req *http.Request, reqBody interface{}, ...) *httperror.ErrorResponse
- func DecodePathAndValidate(ctx context.Context, req *http.Request, reqPath interface{}, ...) *httperror.ErrorResponse
- func DecodeQueryAndValidate(ctx context.Context, req *http.Request, reqQuery interface{}, ...) *httperror.ErrorResponse
- func ValidateRequestParams(ctx context.Context, reqParams interface{}, appTracker apptracker.AppTracker) *httperror.ErrorResponse
- type AccountHandler
- func (h AccountHandler) CreateFeeBumpTransaction(rw http.ResponseWriter, req *http.Request)
- func (h AccountHandler) DeregisterAccount(w http.ResponseWriter, r *http.Request)
- func (h AccountHandler) RegisterAccount(w http.ResponseWriter, r *http.Request)
- func (h AccountHandler) SponsorAccountCreation(rw http.ResponseWriter, req *http.Request)
- type AccountRegistrationRequest
- type CreateFeeBumpTransactionRequest
- type GetTransactionRequest
- type GetTransactionResponse
- type PaymentHandler
- type PaymentsRequest
- type PaymentsResponse
- type SponsorAccountCreationRequest
- type TSSHandler
- type Transaction
- type TransactionEnvelopeResponse
- type TransactionSubmissionRequest
- type TransactionSubmissionResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeJSONAndValidate ¶
func DecodeJSONAndValidate(ctx context.Context, req *http.Request, reqBody interface{}, appTracker apptracker.AppTracker) *httperror.ErrorResponse
func DecodePathAndValidate ¶
func DecodePathAndValidate(ctx context.Context, req *http.Request, reqPath interface{}, appTracker apptracker.AppTracker) *httperror.ErrorResponse
func DecodeQueryAndValidate ¶
func DecodeQueryAndValidate(ctx context.Context, req *http.Request, reqQuery interface{}, appTracker apptracker.AppTracker) *httperror.ErrorResponse
func ValidateRequestParams ¶
func ValidateRequestParams(ctx context.Context, reqParams interface{}, appTracker apptracker.AppTracker) *httperror.ErrorResponse
Types ¶
type AccountHandler ¶
type AccountHandler struct { AccountService services.AccountService AccountSponsorshipService services.AccountSponsorshipService SupportedAssets []entities.Asset AppTracker apptracker.AppTracker }
func (AccountHandler) CreateFeeBumpTransaction ¶
func (h AccountHandler) CreateFeeBumpTransaction(rw http.ResponseWriter, req *http.Request)
func (AccountHandler) DeregisterAccount ¶
func (h AccountHandler) DeregisterAccount(w http.ResponseWriter, r *http.Request)
func (AccountHandler) RegisterAccount ¶
func (h AccountHandler) RegisterAccount(w http.ResponseWriter, r *http.Request)
func (AccountHandler) SponsorAccountCreation ¶
func (h AccountHandler) SponsorAccountCreation(rw http.ResponseWriter, req *http.Request)
type AccountRegistrationRequest ¶
type AccountRegistrationRequest struct {
Address string `json:"address" validate:"required,public_key"`
}
type CreateFeeBumpTransactionRequest ¶
type CreateFeeBumpTransactionRequest struct {
Transaction string `json:"transaction" validate:"required"`
}
type GetTransactionRequest ¶
type GetTransactionRequest struct {
TransactionHash string `json:"transactionhash" validate:"required"`
}
type GetTransactionResponse ¶
type PaymentHandler ¶
type PaymentHandler struct { PaymentService services.PaymentService AppTracker apptracker.AppTracker }
func (PaymentHandler) GetPayments ¶
func (h PaymentHandler) GetPayments(w http.ResponseWriter, r *http.Request)
type PaymentsRequest ¶
type PaymentsResponse ¶
type PaymentsResponse struct { Payments []data.Payment `json:"payments"` entities.Pagination }
type TSSHandler ¶
type TSSHandler struct { Router router.Router Store store.Store AppTracker apptracker.AppTracker NetworkPassphrase string }
func (*TSSHandler) GetTransaction ¶
func (t *TSSHandler) GetTransaction(w http.ResponseWriter, r *http.Request)
func (*TSSHandler) SubmitTransactions ¶
func (t *TSSHandler) SubmitTransactions(w http.ResponseWriter, r *http.Request)
type Transaction ¶
type Transaction struct {
Operations []string `json:"operations" validate:"required"`
}
type TransactionSubmissionRequest ¶
type TransactionSubmissionRequest struct { WebhookURL string `json:"webhook" validate:"required"` Transactions []Transaction `json:"transactions" validate:"required,gt=0"` }
type TransactionSubmissionResponse ¶
type TransactionSubmissionResponse struct {
TransactionHashes []string `json:"transactionhashes"`
}
Click to show internal directories.
Click to hide internal directories.