Documentation
¶
Overview ¶
Package mappings is a package that contains the mappings for the access keys package.
Index ¶
- func DefaultDBQueryParams() *datastore.QueryParams
- func MapDestinationModelToEngine(d *response.Destination) *engine.Destination
- func MapFeeUnitModelToEngine(fu *response.FeeUnit) (fc *bsv.FeeUnit)
- func MapMapProtocolModelToEngine(mp *response.MapProtocol) *engine.MapProtocol
- func MapOpReturnModelToEngine(op *response.OpReturn) *engine.OpReturn
- func MapPaymailP4ModelToEngine(p *response.PaymailP4) *engine.PaymailP4
- func MapScriptOutputModelToEngine(so *response.ScriptOutput) (sc *engine.ScriptOutput)
- func MapSyncConfigModelToEngine(sc *response.SyncConfig) *engine.SyncConfig
- func MapToAccessKeyContract(ac *engine.AccessKey) *response.AccessKey
- func MapToAdminStatsContract(s *engine.AdminStats) *response.AdminStats
- func MapToContactContract(src *engine.Contact) *response.Contact
- func MapToContactContracts(src []*engine.Contact) []*response.Contact
- func MapToDbQueryParams(model *filter.Page) *datastore.QueryParams
- func MapToDestinationContract(d *engine.Destination) *response.Destination
- func MapToDraftTransactionContract(tx *engine.DraftTransaction) *response.DraftTransaction
- func MapToFeeUnitContract(fu *bsv.FeeUnit) (fc *response.FeeUnit)
- func MapToMapProtocolContract(mp *engine.MapProtocol) *response.MapProtocol
- func MapToMetadata(explicitMap map[string]interface{}) *engine.Metadata
- func MapToOpReturnContract(op *engine.OpReturn) *response.OpReturn
- func MapToPaymailContract(pa *engine.PaymailAddress) *response.PaymailAddress
- func MapToPaymailP4Contract(p *engine.PaymailP4) *response.PaymailP4
- func MapToScriptOutputContract(so *engine.ScriptOutput) (sc *response.ScriptOutput)
- func MapToSyncConfigContract(sc *engine.SyncConfig) *response.SyncConfig
- func MapToTransactionConfigContract(tx *engine.TransactionConfig) *response.TransactionConfig
- func MapToTransactionContract(t *engine.Transaction) *response.Transaction
- func MapToTransactionContractForAdmin(t *engine.Transaction) *response.Transaction
- func MapToTransactionInputContract(inp *engine.TransactionInput) *response.TransactionInput
- func MapToTransactionOutputContract(out *engine.TransactionOutput) *response.TransactionOutput
- func MapToUtxoContract(u *engine.Utxo) *response.Utxo
- func MapToUtxoPointer(u *engine.UtxoPointer) *response.UtxoPointer
- func MapToWebhookContract(w notifications.ModelWebhook) *models.Webhook
- func MapToXpubContract(xpub *engine.Xpub) *response.Xpub
- func MapTransactionConfigEngineToModel(tx *response.TransactionConfig) *engine.TransactionConfig
- func MapTransactionInputModelToEngine(inp *response.TransactionInput) *engine.TransactionInput
- func MapTransactionModelToEngine(t *response.Transaction) *engine.Transaction
- func MapTransactionOutputModelToEngine(out *response.TransactionOutput) *engine.TransactionOutput
- func MapUtxoModelToEngine(u *response.Utxo) *engine.Utxo
- func MapUtxoPointerModelToEngine(u *response.UtxoPointer) *engine.UtxoPointer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultDBQueryParams ¶
func DefaultDBQueryParams() *datastore.QueryParams
DefaultDBQueryParams returns the default db query params
func MapDestinationModelToEngine ¶
func MapDestinationModelToEngine(d *response.Destination) *engine.Destination
MapDestinationModelToEngine will map the spv-wallet-models destination contract to the spv-wallet destination model
func MapFeeUnitModelToEngine ¶
MapFeeUnitModelToEngine will map the fee-unit model from spv-wallet-models to the spv-wallet contract
func MapMapProtocolModelToEngine ¶
func MapMapProtocolModelToEngine(mp *response.MapProtocol) *engine.MapProtocol
MapMapProtocolModelToEngine will map the transaction-output model from spv-wallet-models to the spv-wallet contract
func MapOpReturnModelToEngine ¶
MapOpReturnModelToEngine will map the op-return model from spv-wallet-models to the spv-wallet contract
func MapPaymailP4ModelToEngine ¶
MapPaymailP4ModelToEngine will map the spv-wallet-models paymail-address contract to the spv-wallet paymail-address model
func MapScriptOutputModelToEngine ¶
func MapScriptOutputModelToEngine(so *response.ScriptOutput) (sc *engine.ScriptOutput)
MapScriptOutputModelToEngine will map the script-output model from spv-wallet-models to the spv-wallet contract
func MapSyncConfigModelToEngine ¶
func MapSyncConfigModelToEngine(sc *response.SyncConfig) *engine.SyncConfig
MapSyncConfigModelToEngine will map the sync-config model from spv-wallet-models to the spv-wallet contract
func MapToAccessKeyContract ¶
MapToAccessKeyContract will map the access key to the spv-wallet-models contract
func MapToAdminStatsContract ¶
func MapToAdminStatsContract(s *engine.AdminStats) *response.AdminStats
MapToAdminStatsContract will map the model from spv-wallet to the spv-wallet-models contract
func MapToContactContract ¶
MapToContactContract will map the contact to the spv-wallet-models contract
func MapToContactContracts ¶
MapToContactContracts will map the contacts collection to the spv-wallet-models contracts collection
func MapToDbQueryParams ¶
func MapToDbQueryParams(model *filter.Page) *datastore.QueryParams
MapToDbQueryParams converts filter.QueryParams from models to matching datastore.QueryParams
func MapToDestinationContract ¶
func MapToDestinationContract(d *engine.Destination) *response.Destination
MapToDestinationContract will map the spv-wallet destination model to the spv-wallet-models contract
func MapToDraftTransactionContract ¶
func MapToDraftTransactionContract(tx *engine.DraftTransaction) *response.DraftTransaction
MapToDraftTransactionContract will map the transaction-output model from spv-wallet to the spv-wallet-models contract
func MapToFeeUnitContract ¶
MapToFeeUnitContract will map the fee-unit model from spv-wallet to the spv-wallet-models contract
func MapToMapProtocolContract ¶
func MapToMapProtocolContract(mp *engine.MapProtocol) *response.MapProtocol
MapToMapProtocolContract will map the transaction-output model from spv-wallet to the spv-wallet-models contract
func MapToMetadata ¶
MapToMetadata converts "raw" key-value map to aliased engine.Metadata
func MapToOpReturnContract ¶
MapToOpReturnContract will map the transaction-output model from spv-wallet to the spv-wallet-models contract
func MapToPaymailContract ¶
func MapToPaymailContract(pa *engine.PaymailAddress) *response.PaymailAddress
MapToPaymailContract will map the spv-wallet paymail-address model to the spv-wallet-models contract
func MapToPaymailP4Contract ¶
MapToPaymailP4Contract will map the spv-wallet-models paymail-address contract to the spv-wallet paymail-address model
func MapToScriptOutputContract ¶
func MapToScriptOutputContract(so *engine.ScriptOutput) (sc *response.ScriptOutput)
MapToScriptOutputContract will map the script-output model from spv-wallet to the spv-wallet-models contract
func MapToSyncConfigContract ¶
func MapToSyncConfigContract(sc *engine.SyncConfig) *response.SyncConfig
MapToSyncConfigContract will map the sync-config model from spv-wallet to the spv-wallet-models contract
func MapToTransactionConfigContract ¶
func MapToTransactionConfigContract(tx *engine.TransactionConfig) *response.TransactionConfig
MapToTransactionConfigContract will map the transaction-config model from spv-wallet-models to the spv-wallet contract
func MapToTransactionContract ¶
func MapToTransactionContract(t *engine.Transaction) *response.Transaction
MapToTransactionContract will map the model from spv-wallet to the spv-wallet-models contract
func MapToTransactionContractForAdmin ¶
func MapToTransactionContractForAdmin(t *engine.Transaction) *response.Transaction
MapToTransactionContractForAdmin will map the model from spv-wallet to the spv-wallet-response contract for admin
func MapToTransactionInputContract ¶
func MapToTransactionInputContract(inp *engine.TransactionInput) *response.TransactionInput
MapToTransactionInputContract will map the transaction-output model from spv-wallet-models to the spv-wallet contract
func MapToTransactionOutputContract ¶
func MapToTransactionOutputContract(out *engine.TransactionOutput) *response.TransactionOutput
MapToTransactionOutputContract will map the transaction-output model from spv-wallet to the spv-wallet-models contract
func MapToUtxoContract ¶
MapToUtxoContract will map the utxo model from spv-wallet to the spv-wallet-models contract
func MapToUtxoPointer ¶
func MapToUtxoPointer(u *engine.UtxoPointer) *response.UtxoPointer
MapToUtxoPointer will map the utxo-pointer model from spv-wallet to the spv-wallet-models contract
func MapToWebhookContract ¶
func MapToWebhookContract(w notifications.ModelWebhook) *models.Webhook
MapToWebhookContract will map the webhook model from spv-wallet engine to the spv-wallet-models contract
func MapToXpubContract ¶
MapToXpubContract will map the xpub model from spv-wallet to the spv-wallet-models contract
func MapTransactionConfigEngineToModel ¶
func MapTransactionConfigEngineToModel(tx *response.TransactionConfig) *engine.TransactionConfig
MapTransactionConfigEngineToModel will map the transaction-config model from spv-wallet to the spv-wallet-response contract
func MapTransactionInputModelToEngine ¶
func MapTransactionInputModelToEngine(inp *response.TransactionInput) *engine.TransactionInput
MapTransactionInputModelToEngine will map the transaction-output model from spv-wallet to the spv-wallet-models contract
func MapTransactionModelToEngine ¶
func MapTransactionModelToEngine(t *response.Transaction) *engine.Transaction
MapTransactionModelToEngine will map the model from spv-wallet-response to the spv-wallet contract
func MapTransactionOutputModelToEngine ¶
func MapTransactionOutputModelToEngine(out *response.TransactionOutput) *engine.TransactionOutput
MapTransactionOutputModelToEngine will map the transaction-output model from spv-wallet-models to the spv-wallet contract
func MapUtxoModelToEngine ¶
MapUtxoModelToEngine will map the utxo model from spv-wallet-models to the spv-wallet contract
func MapUtxoPointerModelToEngine ¶
func MapUtxoPointerModelToEngine(u *response.UtxoPointer) *engine.UtxoPointer
MapUtxoPointerModelToEngine will map the utxo-pointer model from spv-wallet-models to the spv-wallet contract
Types ¶
This section is empty.