controllers

package
v0.0.0-...-d765af8 Latest Latest
Warning

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

Go to latest
Published: May 21, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MerchantController

type MerchantController struct {
	beego.Controller
}

func (*MerchantController) AbortWithError

func (c *MerchantController) AbortWithError(status int, err error)

func (*MerchantController) ActivateMerchantAPIToken

func (c *MerchantController) ActivateMerchantAPIToken()

@Title Activate merchant API token @router /merchant/:merchant_id/apisecret/activate [post]

func (*MerchantController) Callback

func (c *MerchantController) Callback()

@Title Merchant callback @router /merchant/callback [post]

func (*MerchantController) CancelPaymentOrder

func (c *MerchantController) CancelPaymentOrder()

@Title Update duration of certain payment order @router /merchant/:merchant_id/order [delete]

func (*MerchantController) GetMerchantAPITokenStatus

func (c *MerchantController) GetMerchantAPITokenStatus()

@Title Get merchant API token status @router /merchant/:merchant_id/apisecret [get]

func (*MerchantController) QueryPaymentOrder

func (c *MerchantController) QueryPaymentOrder()

@Title Query certain payment order @router /merchant/:merchant_id/order [get]

func (*MerchantController) RefreshMerchantSecret

func (c *MerchantController) RefreshMerchantSecret()

@Title Refresh merchant API code and secret @router /merchant/:merchant_id/apisecret/refreshsecret [post]

func (*MerchantController) RequestPaymentOrder

func (c *MerchantController) RequestPaymentOrder()

@Title Request a payment order @router /merchant/:merchant_id/order [post]

func (*MerchantController) ResendFailedMerchantCallbacks

func (c *MerchantController) ResendFailedMerchantCallbacks()

@Title Resend failed callback @router /merchant/:merchant_id/notifications/manual [post]

func (*MerchantController) SetAPIToken

func (c *MerchantController) SetAPIToken()

@Title Set API token @router /merchant/:merchant_id/apitoken [post]

func (*MerchantController) UpdateOrderDuration

func (c *MerchantController) UpdateOrderDuration()

@Title Update duration of certain payment order @router /merchant/:merchant_id/order/duration [post]

type OuterController

type OuterController struct {
	beego.Controller
}

func (*OuterController) AbortWithError

func (c *OuterController) AbortWithError(status int, err error)

func (*OuterController) ActivateAPIToken

func (c *OuterController) ActivateAPIToken()

@Title Activate API token @router /wallets/:wallet_id/apisecret/activate [post]

func (*OuterController) AddSenderWhitelist

func (c *OuterController) AddSenderWhitelist()

@Title Add the outgoing address to the withdrawal wallet's whitelist @router /wallets/:wallet_id/sender/whitelist [post]

func (*OuterController) CallContractRead

func (c *OuterController) CallContractRead()

@Title Call contract read ABI @router /wallets/:wallet_id/contract/read [get]

func (*OuterController) Callback

func (c *OuterController) Callback()

@Title Callback @router /wallets/callback [post]

func (*OuterController) CancelWithdrawTransactions

func (c *OuterController) CancelWithdrawTransactions()

@Title Cancel withdraw request that current state is init @router /wallets/:wallet_id/sender/transactions/:order_id/cancel [post]

func (*OuterController) CheckSenderWhitelist

func (c *OuterController) CheckSenderWhitelist()

@Title Check the outgoing address status in the withdrawal wallet's whitelist @router /wallets/:wallet_id/sender/whitelist/check [post]

func (*OuterController) CreateDepositWalletAddresses

func (c *OuterController) CreateDepositWalletAddresses()

@Title Create deposit wallet addresses @router /wallets/:wallet_id/addresses [post]

func (*OuterController) GetAutoFee

func (c *OuterController) GetAutoFee()

@Title Query wallet transaction avarage blockchain fee @router /wallets/:wallet_id/autofee [post]

func (*OuterController) GetAutoFees

func (c *OuterController) GetAutoFees()

@Title Query wallet transaction avarage blockchain fees @router /wallets/:wallet_id/autofees [post]

func (*OuterController) GetCallbackBySerial

func (c *OuterController) GetCallbackBySerial()

@Title Query notification by serial @router /wallets/:wallet_id/notifications/get_by_id [post]

func (*OuterController) GetDeployedContractCollectionAddresses

func (c *OuterController) GetDeployedContractCollectionAddresses()

@Title Query the deployed contract collection addresses @router /wallets/:wallet_id/addresses/contract_txid [get]

func (*OuterController) GetDepositCallback

func (c *OuterController) GetDepositCallback()

@Title Query deposit callback by txid and vout_index @router /wallets/:wallet_id/receiver/notifications/txid/:txid/:vout_index [get]

func (*OuterController) GetDepositWalletAddresses

func (c *OuterController) GetDepositWalletAddresses()

@Title Get deposit wallet addresses @router /wallets/:wallet_id/addresses [get]

func (*OuterController) GetDepositWalletAddressesLabel

func (c *OuterController) GetDepositWalletAddressesLabel()

@Title Query the deposit addresses' labels @router /wallets/:wallet_id/addresses/get_labels [post]

func (*OuterController) GetDepositWalletBalance

func (c *OuterController) GetDepositWalletBalance()

@Title Get balance of deposit wallet @router /wallets/:wallet_id/receiver/balance [get]

func (*OuterController) GetDepositWalletPoolAddress

func (c *OuterController) GetDepositWalletPoolAddress()

@Title Get deposit wallet pool address @router /wallets/:wallet_id/pooladdress [get]

func (*OuterController) GetDepositWalletPoolAddressBalance

func (c *OuterController) GetDepositWalletPoolAddressBalance()

@Title Get balance of deposit wallet pool address @router /wallets/:wallet_id/pooladdress/balance [get]

func (*OuterController) GetInvalidDepositAddresses

func (c *OuterController) GetInvalidDepositAddresses()

@Title Query invalid deposit addresses @router /wallets/:wallet_id/addresses/invalid-deposit [get]

func (*OuterController) GetNotifications

func (c *OuterController) GetNotifications()

@Title Query notification history @router /wallets/:wallet_id/notifications [get]

func (*OuterController) GetReadOnlyWalletList

func (c *OuterController) GetReadOnlyWalletList()

@Title Get the wallet list that the read-only API token can access @router /wallets/readonly/walletlist [get]

func (*OuterController) GetReadOnlyWalletListBalances

func (c *OuterController) GetReadOnlyWalletListBalances()

@Title Get balances of the wallet list that the read-only API token can access @router /wallets/readonly/walletlist/balances [get]

func (*OuterController) GetSenderTransactionHistory

func (c *OuterController) GetSenderTransactionHistory()

@Title Query the withdrawal wallet's transaction history @router /wallets/:wallet_id/sender/transactions [get]

func (*OuterController) GetSenderWhitelist

func (c *OuterController) GetSenderWhitelist()

@Title Query the whitelist of the withdrawal wallet @router /wallets/:wallet_id/sender/whitelist [get]

func (*OuterController) GetTransactionEventLog

func (c *OuterController) GetTransactionEventLog()

@Title Get transaction event logs @router /wallets/:wallet_id/sender/transactions/eventlog [get]

func (*OuterController) GetTransactionHistory

func (c *OuterController) GetTransactionHistory()

@Title Query wallet transaction history @router /wallets/:wallet_id/transactions [get]

func (*OuterController) GetTxAPITokenStatus

func (c *OuterController) GetTxAPITokenStatus()

@Title Get API token status @router /wallets/:wallet_id/apisecret [get]

func (*OuterController) GetVaultWalletBalance

func (c *OuterController) GetVaultWalletBalance()

@Title Get balance of the vault wallet @router /wallets/:wallet_id/vault/balance [get]

func (*OuterController) GetWalletBlockInfo

func (c *OuterController) GetWalletBlockInfo()

@Title Query wallet block info @router /wallets/:wallet_id/blocks [get]

func (*OuterController) GetWalletInfo

func (c *OuterController) GetWalletInfo()

@Title Query wallet basic info @router /wallets/:wallet_id/info [get]

func (*OuterController) GetWithdrawTransactionState

func (c *OuterController) GetWithdrawTransactionState()

@Title Get state of withdrawal transaction @router /wallets/:wallet_id/sender/transactions/:order_id [get]

func (*OuterController) GetWithdrawTransactionStateAll

func (c *OuterController) GetWithdrawTransactionStateAll()

@Title Get state of withdrawal transaction @router /wallets/:wallet_id/sender/transactions/:order_id/all [get]

func (*OuterController) GetWithdrawalCallback

func (c *OuterController) GetWithdrawalCallback()

@Title Query withdrawal callback by order_id @router /wallets/:wallet_id/sender/notifications/order_id/:order_id [get]

func (*OuterController) GetWithdrawalWalletBalance

func (c *OuterController) GetWithdrawalWalletBalance()

@Title Get balance of withdrawal wallet @router /wallets/:wallet_id/sender/balance [get]

func (*OuterController) NotificationsInspect

func (c *OuterController) NotificationsInspect()

@Title Check the callback endpoints @router /wallets/:wallet_id/notifications/inspect [post]

func (*OuterController) QuerySenderWhitelistConfig

func (c *OuterController) QuerySenderWhitelistConfig()

@Title Query the withdrawal wallet's whitelist config @router /wallets/:wallet_id/sender/whitelist/config [get]

func (*OuterController) RefreshSecret

func (c *OuterController) RefreshSecret()

@Title Refresh API code and secret @router /wallets/:wallet_id/refreshsecret [post]

func (*OuterController) RemoveSenderWhitelist

func (c *OuterController) RemoveSenderWhitelist()

@Title Remove the outgoing address from the withdrawal wallet's whitelist @router /wallets/:wallet_id/sender/whitelist [delete]

func (*OuterController) ResendDepositCollectionCallbacks

func (c *OuterController) ResendDepositCollectionCallbacks()

@Title Resend Deposit/Collection Callback @router /wallets/:wallet_id/collection/notifications/manual [post]

func (*OuterController) ResendWithdrawalCallbacks

func (c *OuterController) ResendWithdrawalCallbacks()

@Title Resend Withdrawal Callback @router /wallets/:wallet_id/sender/notifications/manual [post]

func (*OuterController) SetAPIToken

func (c *OuterController) SetAPIToken()

@Title Set API token @router /wallets/:wallet_id/apitoken [post]

func (*OuterController) SetWithdrawalACL

func (c *OuterController) SetWithdrawalACL()

@Title Set Withdrawal Request ACL @router /wallets/:wallet_id/sender/transactions/acl [post]

func (*OuterController) SignMessage

func (c *OuterController) SignMessage()

@Title Sign Message @router /wallets/:wallet_id/signmessage [post]

func (*OuterController) UpdateDepositWalletAddressLabel

func (c *OuterController) UpdateDepositWalletAddressLabel()

@Title Update the label of the deposit address @router /wallets/:wallet_id/addresses/label [post]

func (*OuterController) VerifyAddresses

func (c *OuterController) VerifyAddresses()

@Title Verify addresses @router /wallets/:wallet_id/addresses/verify [post]

func (*OuterController) WithdrawAssets

func (c *OuterController) WithdrawAssets()

@Title Withdraw transactions @router /wallets/:wallet_id/sender/transactions [post]

func (*OuterController) WithdrawalCallback

func (c *OuterController) WithdrawalCallback()

@Title Withdrawal Callback @router /wallets/withdrawal/callback [post]

Jump to

Keyboard shortcuts

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