Documentation ¶
Overview ¶
models.go
Index ¶
- Constants
- Variables
- func ComputeHmac512(message []byte, secret string) string
- func GenerateActivationId() string
- func GenerateAssetId() string
- func GenerateDividendId() string
- func GenerateKey() string
- func GeneratePaymentId() string
- func GenerateRequestId() string
- type Address
- type AddressAmount
- type AddressBalances
- type Amount
- type AppError
- type Asset
- type AssetBalances
- type AssetIssuances
- type Block
- type Blocks
- type Dividend
- type Issuance
- type Payment
- type PaymentId
- type Payments
- type ReleaseNote
- type ReturnCode
- type SimplePayment
- type Wallet
- type WalletPayment
Constants ¶
View Source
const ( VersionMajor = 3 VersionMinor = 0 VersionPatch = 0 VersionPrerelease = "beta" VersionTag = "backstreetsback" )
Must follow http://semver.org/
Variables ¶
View Source
var ReleaseNotes = []ReleaseNote{
{22, "internal", "Add support for Ripple"},
{94, "internal", "Create new function for server info"},
}
Functions ¶
func ComputeHmac512 ¶
func GenerateActivationId ¶
func GenerateActivationId() string
func GenerateAssetId ¶
func GenerateAssetId() string
func GenerateDividendId ¶
func GenerateDividendId() string
func GenerateKey ¶
func GenerateKey() string
Generates a 64 character random string that can be used as a secret or an access key
func GeneratePaymentId ¶
func GeneratePaymentId() string
func GenerateRequestId ¶
func GenerateRequestId() string
Types ¶
type AddressAmount ¶
type AddressBalances ¶
type Asset ¶
type Asset struct { Passphrase string `json:"passphrase,omitempty"` SourceAddress string `json:"sourceAddress"` DistributionPassphrase string `json:"distributionPassphrase,omitempty"` DistributionAddress string `json:"distributionAddress,omitempty"` AssetId string `json:"assetId"` Asset string `json:"asset"` Issuer string `json:"issuer,omitempty"` Description string `json:"description"` Quantity uint64 `json:"quantity"` Divisible bool `json:"divisible"` BroadcastTxId string `json:"broadcastTxId"` BlockchainStatus string `json:"blockchainStatus"` BlockchainConfirmations uint64 `json:"blockchainConfirmations"` Status string `json:"status"` ErrorMessage string `json:"errorMessage"` RequestId string `json:"requestId"` Nonce int64 `json:"nonce"` BlockchainId string `json:"blockchainId"` }
type AssetBalances ¶
type AssetBalances struct { Asset string `json:"asset"` Locked bool `json:"locked"` Divisible bool `json:"divisible"` Divisibility uint64 `json:"divisibility"` Description string `json:"description"` Supply uint64 `json:"quantity"` Balances []AddressAmount `json:"balances"` RequestId string `json:"requestId"` Nonce int64 `json:"nonce"` }
type AssetIssuances ¶
type AssetIssuances struct { Asset string `json:"asset"` Divisible bool `json:"divisible"` Divisibility uint64 `json:"divisibility"` Description string `json:"description"` Locked bool `json:"locked"` Issuances []Issuance `json:"issuances"` RequestId string `json:"requestId"` Nonce int64 `json:"nonce"` }
type Dividend ¶
type Dividend struct { Passphrase string `json:"passphrase,omitempty"` SourceAddress string `json:"sourceAddress"` DividendId string `json:"dividendId"` Asset string `json:"asset"` DividendAsset string `json:"dividendAsset"` QuantityPerUnit uint64 `json:"quantityPerUnit"` Status string `json:"status"` ErrorMessage string `json:"errorMessage"` RequestId string `json:"requestId"` Nonce int64 `json:"nonce"` BroadcastTxId string `json:"broadcastTxId"` BlockchainStatus string `json:"blockchainStatus"` BlockchainConfirmations uint64 `json:"blockchainConfirmations"` }
type Payment ¶
type Payment struct { BlockId int64 `json:"blockId"` SourceTxId string `json:"sourceTxId"` SourceAddress string `json:"sourceAddress"` DestinationAddress string `json:"destinationAddress"` OutAsset string `json:"outAssest"` OutAmount int64 `json:"outAmount"` Status string `json:"status"` LastUpdatedBlockId int64 `json:"lastUpdatedblockId"` RequestId string `json:"requestId"` Nonce int64 `json:"nonce"` }
type ReleaseNote ¶
type ReturnCode ¶
type SimplePayment ¶
type SimplePayment struct { BlockchainId string `json:"blockchainId"` SourceAddress string `json:"sourceAddress"` DestinationAddress string `json:"destinationAddress"` Asset string `json:"asset"` Issuer string `json:"issuer"` Amount uint64 `json:"amount"` PaymentId string `json:"paymentId"` TxFee int64 `json:"txFee"` BroadcastTxId string `json:"broadcastTxId"` BlockchainStatus string `json:"blockchainStatus"` BlockchainConfirmations uint64 `json:"blockchainConfirmations"` PaymentTag string `json:"paymentTag"` Status string `json:"status"` ErrorCode int64 `json:"errorCode"` ErrorMessage string `json:"errorMessage"` RequestId string `json:"requestId"` Nonce int64 `json:"nonce"` }
type Wallet ¶
type Wallet struct { Passphrase string `json:"passphrase"` HexSeed string `json:"hexSeed"` Addresses []string `json:"addresses"` RequestId string `json:"requestId"` BlockchainId string `json:"blockchainId,omitempty"` KeyType string `json:"key_type,omitempty"` MasterKey string `json:"master_key,omitempty"` MasterSeed string `json:"master_seed,omitempty"` MasterSeedHex string `json:"master_seed_hex,omitempty"` PublicKey string `json:"public_key,omitempty"` PublicKeyHex string `json:"public_key_hex,omitempty"` }
type WalletPayment ¶
type WalletPayment struct { Passphrase string `json:"passphrase"` SourceAddress string `json:"sourceAddress"` DestinationAddress string `json:"destinationAddress"` Asset string `json:"asset"` Quantity uint64 `json:"quantity"` PaymentId string `json:"paymentId"` PaymentTag string `json:"paymentTag"` RequestId string `json:"requestId"` Nonce int64 `json:"nonce"` }
Click to show internal directories.
Click to hide internal directories.