Documentation ¶
Index ¶
- type CreateTransactionRequest
- type CreateTransactionResponse
- type CreateWalletTransactionRequest
- type CreateWalletTransactionResponse
- type GetWalletAddressResponse
- type GetWalletFeeRateResponse
- type GetWalletOverviewResponse
- type GetWalletRequest
- type GetWalletsResponse
- type IWalletHelper
- type IWalletRepository
- type TransactionDestination
- type Wallet
- type WalletController
- type WalletHelper
- func (wh WalletHelper) CreateWalletTransaction(cryptoCode string, cwtr *CreateWalletTransactionRequest) (*CreateWalletTransactionResponse, error)
- func (wh WalletHelper) GetWalletAddress(cryptoCode string) (*GetWalletAddressResponse, error)
- func (wh WalletHelper) GetWalletFeeRate(cryptoCode string) (*GetWalletFeeRateResponse, error)
- func (wh WalletHelper) GetWalletOverview(cryptoCode string) (*GetWalletOverviewResponse, error)
- func (wh WalletHelper) GetWalletTransactions(cryptoCode string, skip int64, limit int64) (*[]WalletTransaction, error)
- type WalletRepository
- func (wr WalletRepository) CreateWallet(wallet *Wallet) (*Wallet, error)
- func (wr WalletRepository) GetWallet(id string) (*Wallet, error)
- func (wr WalletRepository) GetWallets(filter interface{}, options *options.FindOptions) (*[]Wallet, error)
- func (wr WalletRepository) UpdateWallet(wallet *Wallet) (*Wallet, error)
- type WalletTransaction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateTransactionResponse ¶
type CreateTransactionResponse struct { TransactionHash string `json:"transactionHash"` Comment string `json:"comment"` Amount decimal.Decimal `json:"amount"` BlockHash string `json:"blockHash"` BlockHeight string `json:"blockHeight"` Confirmations string `json:"confirmations"` Timestamp int64 `json:"timestamp"` Status string `json:"status"` }
type CreateWalletTransactionRequest ¶
type CreateWalletTransactionRequest struct {
Destinations []TransactionDestination `json:"destinations"`
}
type CreateWalletTransactionResponse ¶
type CreateWalletTransactionResponse struct { TransactionHash string `json:"transactionHash"` Comment string `json:"comment"` Amount decimal.Decimal `json:"amount"` BlockHash string `json:"blockHash"` BlockHeight string `json:"blockHeight"` Confirmations string `json:"confirmations"` Timestamp int64 `json:"timestamp"` Status string `json:"status"` }
type GetWalletRequest ¶
type GetWalletRequest struct {
CryptoCode string
}
type GetWalletsResponse ¶
type IWalletHelper ¶
type IWalletHelper interface { GetWalletOverview(cryptoCode string) (*GetWalletOverviewResponse, error) GetWalletFeeRate(cryptoCode string) (*GetWalletFeeRateResponse, error) GetWalletAddress(cryptoCode string) (*GetWalletAddressResponse, error) GetWalletTransactions(cryptoCode string, skip int64, limit int64) (*[]WalletTransaction, error) CreateWalletTransaction(cryptoCode string, cwtr *CreateWalletTransactionRequest) (*CreateWalletTransactionResponse, error) }
type IWalletRepository ¶
type TransactionDestination ¶
type WalletController ¶
type WalletController struct {
// contains filtered or unexported fields
}
func NewWalletController ¶
func NewWalletController(wh WalletHelper, wr WalletRepository, ur user.UserRepository, auth auth.Auth) WalletController
func (WalletController) CreateTransaction ¶
func (wc WalletController) CreateTransaction(c *gin.Context)
func (WalletController) GetWalletAddress ¶
func (wc WalletController) GetWalletAddress(c *gin.Context)
func (WalletController) GetWalletOverview ¶
func (wc WalletController) GetWalletOverview(c *gin.Context)
func (WalletController) GetWallets ¶
func (wc WalletController) GetWallets(c *gin.Context)
type WalletHelper ¶
func NewWalletHelper ¶
func NewWalletHelper(token string, hostname string, storeId string, client resty.Client) WalletHelper
func (WalletHelper) CreateWalletTransaction ¶
func (wh WalletHelper) CreateWalletTransaction(cryptoCode string, cwtr *CreateWalletTransactionRequest) (*CreateWalletTransactionResponse, error)
func (WalletHelper) GetWalletAddress ¶
func (wh WalletHelper) GetWalletAddress(cryptoCode string) (*GetWalletAddressResponse, error)
func (WalletHelper) GetWalletFeeRate ¶
func (wh WalletHelper) GetWalletFeeRate(cryptoCode string) (*GetWalletFeeRateResponse, error)
func (WalletHelper) GetWalletOverview ¶
func (wh WalletHelper) GetWalletOverview(cryptoCode string) (*GetWalletOverviewResponse, error)
func (WalletHelper) GetWalletTransactions ¶
func (wh WalletHelper) GetWalletTransactions(cryptoCode string, skip int64, limit int64) (*[]WalletTransaction, error)
type WalletRepository ¶
func NewWalletRepository ¶
func NewWalletRepository(client *mongo.Client) WalletRepository
func (WalletRepository) CreateWallet ¶
func (wr WalletRepository) CreateWallet(wallet *Wallet) (*Wallet, error)
func (WalletRepository) GetWallet ¶
func (wr WalletRepository) GetWallet(id string) (*Wallet, error)
func (WalletRepository) GetWallets ¶
func (wr WalletRepository) GetWallets(filter interface{}, options *options.FindOptions) (*[]Wallet, error)
func (WalletRepository) UpdateWallet ¶
func (wr WalletRepository) UpdateWallet(wallet *Wallet) (*Wallet, error)
type WalletTransaction ¶
type WalletTransaction struct { TransactionHash string `json:"transactionHash"` Comment string `json:"comment"` Amount decimal.Decimal `json:"amount"` BlockHash string `json:"blockHash"` BlockHeight string `json:"blockHeight"` Confirmations string `json:"confirmations"` Timestamp int `json:"timestamp"` Status string `json:"status"` }
Click to show internal directories.
Click to hide internal directories.